Commit e01ce640 authored by Valentin Reis's avatar Valentin Reis

Merge branch 'verbosemode' into 'master'

[feature] Adds --verbose argument to the daemon.

See merge request !73
parents d305b514 047ed5cf
Pipeline #5712 canceled with stages
in 15 seconds
......@@ -56,6 +56,8 @@ def main(argv=None):
parser = argparse.ArgumentParser(parents=[conf_parser])
parser.set_defaults(**defaults)
parser.add_argument("-v", "--verbose", help="increase output verbosity",
action="store_true")
parser.add_argument(
"--nrm_log",
help="Main log file. Override default with the NRM_LOG."
......
......@@ -341,7 +341,8 @@ class Daemon(object):
def runner(config):
ioloop.install()
logger.setLevel(logging.DEBUG)
if config.verbose:
logger.setLevel(logging.DEBUG)
if config.nrm_log:
print("Logging to %s" % config.nrm_log)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment