summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
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()