diff options
| author | 2013-11-16 22:31:35 +0100 | |
|---|---|---|
| committer | 2013-11-16 22:31:35 +0100 | |
| commit | 5edf4597efba463d57039d337b3656c8fa5fea78 (patch) | |
| tree | 87d58725a719824bef50041ff41d179067759648 /pyload/Core.py | |
| parent | Fixed logfile color codes (colorize console only) + settable color log type +... (diff) | |
| download | pyload-5edf4597efba463d57039d337b3656c8fa5fea78.tar.xz | |
Applied RaNaN advice
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 52e2a4045..8897764a7 100644 --- a/pyload/Core.py +++ b/pyload/Core.py @@ -59,8 +59,6 @@ from utils.fs import free_space, exists, makedirs, join, chmod  from codecs import getwriter -from utils.colorlog import ColoredFormatter -  # test runner overwrites sys.stdout  if hasattr(sys.stdout, "encoding"): enc = get_console_encoding(sys.stdout.encoding)  else: enc = "utf8" @@ -527,6 +525,8 @@ class Core(object):          if self.config['log']['console_color'] == "No":              console_frm = fh_frm          else: +            from lib.colorlog import ColoredFormatter +              if self.config['log']['console_color'] == "Light":                  cfmt = "%(asctime)s %(log_color)s%(bold)s%(white)s %(levelname)+8s %(reset)s %(message)s"                  clr = {  | 
