Loading cloudcontrol/node/config.py +7 −1 Original line number Diff line number Diff line Loading @@ -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): Loading etc/cc-node.conf +1 −0 Original line number Diff line number Diff line Loading @@ -5,3 +5,4 @@ login=_CC_SERVER_LOGIN_ password=_CC_SERVER_PASSWD_ # verbosity = 0 # debug = off examples/cc-node-debug.conf +1 −0 Original line number Diff line number Diff line Loading @@ -5,3 +5,4 @@ login=__USER__ password=__PASSWD__ verbosity=3 debug=on Loading
cloudcontrol/node/config.py +7 −1 Original line number Diff line number Diff line Loading @@ -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): Loading
etc/cc-node.conf +1 −0 Original line number Diff line number Diff line Loading @@ -5,3 +5,4 @@ login=_CC_SERVER_LOGIN_ password=_CC_SERVER_PASSWD_ # verbosity = 0 # debug = off
examples/cc-node-debug.conf +1 −0 Original line number Diff line number Diff line Loading @@ -5,3 +5,4 @@ login=__USER__ password=__PASSWD__ verbosity=3 debug=on