summaryrefslogtreecommitdiffstats
path: root/pyload/Core.py
diff options
context:
space:
mode:
authorGravatar Armin <Armin@Armin-PC.diedering.lan> 2015-04-18 15:03:47 +0200
committerGravatar Armin <Armin@Armin-PC.diedering.lan> 2015-04-18 15:03:47 +0200
commit2deaf64acf3afba168ef85e7dd75578f22b9b2e7 (patch)
tree13d9864894ed65c3543d8ad1f61c0d683d4c4881 /pyload/Core.py
parentfixed: show "all" logs in webui (diff)
downloadpyload-2deaf64acf3afba168ef85e7dd75578f22b9b2e7.tar.xz
fix: color_logger
revert partially Spare code cosmetics (1) to fix SyntaxError: duplicate argument 'section' in function definition
Diffstat (limited to 'pyload/Core.py')
-rwxr-xr-xpyload/Core.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pyload/Core.py b/pyload/Core.py
index e6f6fefcb..f723d8366 100755
--- a/pyload/Core.py
+++ b/pyload/Core.py
@@ -518,7 +518,7 @@ class Core(object):
'CRITICAL': "purple"
}
- console_frm = colorlog.ColoredFormatter(format=c_fmt,
+ console_frm = colorlog.ColoredFormatter(fmt=c_fmt,
datefmt=date_fmt,
log_colors=clr,
secondary_log_colors=extra_clr)
@@ -596,7 +596,7 @@ class Core(object):
if not file_exists and not quiet:
if file_created:
- #self.log.info( _("%s created") % description )
+ #self.log.info( _("%s created") % description )
pass
else:
if not empty:
@@ -674,7 +674,7 @@ def deamon():
try:
pid = os.fork()
if pid > 0:
- # exit from second parent, print eventual PID before
+ # exit from second parent, print eventual PID before
print "Daemon PID %d" % pid
sys.exit(0)
except OSError, e:
@@ -698,7 +698,7 @@ def deamon():
def main():
if "--daemon" in sys.argv:
- deamon()
+ deamon()
else:
pyload_core = Core()
try: