diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2014-01-03 00:08:32 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2014-01-03 00:08:32 +0100 |
commit | 732b2e7374829ac3460683ea86c404700343b76f (patch) | |
tree | 11534386928604463d4fc83f174bc1e9fa8efad6 | |
parent | fix small decrypter bugs (diff) | |
download | pyload-732b2e7374829ac3460683ea86c404700343b76f.tar.xz |
try to get colored log on windows working
-rw-r--r-- | pyload/Core.py | 3 | ||||
-rw-r--r-- | pyload/config/default.py | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/pyload/Core.py b/pyload/Core.py index 4a9c51379..d18c80cad 100644 --- a/pyload/Core.py +++ b/pyload/Core.py @@ -500,8 +500,6 @@ class Core(object): self.webserver.start() def init_logger(self, level): - console = logging.StreamHandler(sys.stdout) - datefmt = "%Y-%m-%d %H:%M:%S" # file handler formatter @@ -543,6 +541,7 @@ class Core(object): if color: console_frm = ColoredFormatter(cfmt, datefmt, clr) # set console formatter + console = logging.StreamHandler(sys.stdout) console.setFormatter(console_frm) self.log = logging.getLogger("log") # setable in config diff --git a/pyload/config/default.py b/pyload/config/default.py index 530bb35dc..1ad164c31 100644 --- a/pyload/config/default.py +++ b/pyload/config/default.py @@ -52,7 +52,7 @@ def make_config(config): ("key", "file", _("SSL Key"), "ssl.key"), ]) - config.addConfigSection("webUI", _("webUI"), _("Description"), _("Long description"), + config.addConfigSection("webUI", _("WebUI"), _("Description"), _("Long description"), [ ("template", "str", _("Template"), "default"), ("prefix", "str", _("Path Prefix"), ""), |