File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -355,15 +355,14 @@ def INSTALLED_APPS(self): # noqa
355
355
},
356
356
},
357
357
'loggers' : {
358
- 'readthedocs ' : {
358
+ '' : { # root logger
359
359
'handlers' : ['debug' , 'console' ],
360
- 'level' : 'DEBUG' ,
361
- 'propagate' : True ,
360
+ 'level' : 'DEBUG' , # Always send from the root, handlers can filter levels
362
361
},
363
- '' : {
362
+ 'readthedocs ' : {
364
363
'handlers' : ['debug' , 'console' ],
365
364
'level' : 'DEBUG' ,
366
- 'propagate' : True ,
365
+ 'propagate' : False , # Don't double log at the root logger for these.
367
366
},
368
367
},
369
368
}
Original file line number Diff line number Diff line change @@ -56,8 +56,6 @@ def DATABASES(self): # noqa
56
56
def LOGGING (self ): # noqa - avoid pep8 N802
57
57
logging = super (CommunityDevSettings , self ).LOGGING
58
58
logging ['formatters' ]['default' ]['format' ] = '[%(asctime)s] ' + self .LOG_FORMAT
59
- # Remove double logging
60
- logging ['loggers' ]['' ]['handlers' ] = []
61
59
return logging
62
60
63
61
You can’t perform that action at this time.
0 commit comments