From 3e84ea823766adef12946de90b33e62a84b52c46 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Fri, 13 Dec 2013 18:38:53 +0100 Subject: added new file states --- pyload/Core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pyload/Core.py') 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) -- cgit v1.2.3