mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
Setting debug = 1 in config now sets log level to debug for all processes
This commit is contained in:
parent
c57e34c9f9
commit
98e4710d89
2 changed files with 9 additions and 4 deletions
|
@ -132,9 +132,14 @@ class SBRotatingLogHandler(object):
|
|||
logging.getLogger('imdbpy').addHandler(self.cur_handler)
|
||||
|
||||
logging.getLogger('sickbeard').setLevel(DB)
|
||||
logging.getLogger('tornado').setLevel(logging.WARNING)
|
||||
logging.getLogger('subliminal').setLevel(logging.WARNING)
|
||||
logging.getLogger('imdbpy').setLevel(logging.WARNING)
|
||||
|
||||
log_level = logging.WARNING
|
||||
if sickbeard.DEBUG:
|
||||
log_level = logging.DEBUG
|
||||
|
||||
logging.getLogger('tornado').setLevel(log_level)
|
||||
logging.getLogger('subliminal').setLevel(log_level)
|
||||
logging.getLogger('imdbpy').setLevel(log_level)
|
||||
|
||||
# already logging in new log folder, close the old handler
|
||||
if old_handler:
|
||||
|
|
|
@ -98,7 +98,7 @@ def initWebServer(options={}):
|
|||
|
||||
# Load the app
|
||||
app = Application([],
|
||||
debug=False,
|
||||
debug=sickbeard.DEBUG,
|
||||
gzip=True,
|
||||
autoreload=sickbeard.AUTO_UPDATE,
|
||||
xheaders=True,
|
||||
|
|
Loading…
Reference in a new issue