Commit 05475630 authored by Anael Beutot's avatar Anael Beutot
Browse files

Added debug argument in config file

parent 8b1a63b1
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -35,7 +35,13 @@ class NodeConfigParser(object):

        self.logging_level = int(config.get('verbosity', 0))

        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):
+1 −0
Original line number Diff line number Diff line
@@ -5,3 +5,4 @@ login=_CC_SERVER_LOGIN_
password=_CC_SERVER_PASSWD_

# verbosity = 0
# debug = off
+1 −0
Original line number Diff line number Diff line
@@ -5,3 +5,4 @@ login=__USER__
password=__PASSWD__

verbosity=3
debug=on