Skip to content
Snippets Groups Projects
Commit 05475630 authored by Anael Beutot's avatar Anael Beutot
Browse files

Added debug argument in config file

parent 8b1a63b1
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,13 @@ class NodeConfigParser(object):
self.logging_level = int(config.get('verbosity', 0))
self.debug = True
self.debug = config.get('debug', 'no')
if self.debug in ('yes', '1', 'on', 'true'):
self.debug = True
else:
if self.debug not in ('no', '0', 'off', 'false'):
logger.error('Invalid value for debug in config file')
self.debug = False
def configure_logging(level):
......
......@@ -5,3 +5,4 @@ login=_CC_SERVER_LOGIN_
password=_CC_SERVER_PASSWD_
# verbosity = 0
# debug = off
......@@ -5,3 +5,4 @@ login=__USER__
password=__PASSWD__
verbosity=3
debug=on
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment