summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar spoob <spoob@gmx.de> 2009-08-12 20:08:03 +0200
committerGravatar spoob <spoob@gmx.de> 2009-08-12 20:08:03 +0200
commit0336919f4ce067333462a2c6e196daf6a4062a6a (patch)
treeff75ea9b13e0eca236b87cbcfe1455c49a457546 /pyLoadCore.py
parentmoved update service to update.pyload.org (diff)
downloadpyload-0336919f4ce067333462a2c6e196daf6a4062a6a.tar.xz
added debug mode0.1.1
Diffstat (limited to 'pyLoadCore.py')
-rw-r--r--pyLoadCore.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index c7c5140c2..8805905de 100644
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -62,8 +62,10 @@ class Core(object):
self.check_create(self.config['link_file'], _("file for links"), False)
self.check_create(self.config['failed_file'], _("file for failed links"), False)
- self.init_logger(logging.DEBUG) # logging level
-
+ if self.config['debug_mode']:
+ self.init_logger(logging.DEBUG) # logging level
+ else:
+ self.init_logger(logging.INFO) # logging level
self.check_update()