diff options
Diffstat (limited to 'pyload/Core.py')
-rw-r--r-- | pyload/Core.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyload/Core.py b/pyload/Core.py index 4003dd7b1..4893283a8 100644 --- a/pyload/Core.py +++ b/pyload/Core.py @@ -532,7 +532,7 @@ class Core(object): 'ERROR': 'bg_red', 'CRITICAL': 'bg_purple', } - elif self.config['log']['color_theme'] == "light": + else: #light theme cfmt = "%(log_color)s%(asctime)s %(levelname)-8s %(message)s" clr = { 'DEBUG': 'cyan', @@ -540,6 +540,7 @@ class Core(object): 'ERROR': 'red', 'CRITICAL': 'purple', } + console_frm = ColoredFormatter(cfmt, datefmt, clr) else: console_frm = fh_frm @@ -573,7 +574,6 @@ class Core(object): self.log.removeHandler(h) h.close() - def restart(self): self.shutdown() chdir(owd) |