Apply log level changes
This commit is contained in:
parent
dbe2a7b240
commit
a0b60a8347
1 changed files with 4 additions and 0 deletions
|
@ -5,6 +5,7 @@ import os
|
|||
import shutil
|
||||
import re
|
||||
import copy
|
||||
import logging
|
||||
|
||||
import gevent
|
||||
|
||||
|
@ -1079,4 +1080,7 @@ class UiWebsocket(object):
|
|||
if key == "trackers_file":
|
||||
config.loadTrackersFile()
|
||||
|
||||
if key == "log_level":
|
||||
logging.getLogger('').setLevel(logging.getLevelName(config.log_level))
|
||||
|
||||
self.response(to, "ok")
|
||||
|
|
Loading…
Reference in a new issue