Commit 047ed5cf authored by Valentin Reis's avatar Valentin Reis
Browse files

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

parent d305b514
Pipeline #5704 passed with stages
in 42 minutes and 47 seconds
...@@ -56,6 +56,8 @@ def main(argv=None): ...@@ -56,6 +56,8 @@ def main(argv=None):
parser = argparse.ArgumentParser(parents=[conf_parser]) parser = argparse.ArgumentParser(parents=[conf_parser])
parser.set_defaults(**defaults) parser.set_defaults(**defaults)
parser.add_argument("-v", "--verbose", help="increase output verbosity",
parser.add_argument( parser.add_argument(
"--nrm_log", "--nrm_log",
help="Main log file. Override default with the NRM_LOG." help="Main log file. Override default with the NRM_LOG."
...@@ -341,7 +341,8 @@ class Daemon(object): ...@@ -341,7 +341,8 @@ class Daemon(object):
def runner(config): def runner(config):
ioloop.install() ioloop.install()
logger.setLevel(logging.DEBUG) if config.verbose:
if config.nrm_log: if config.nrm_log:
print("Logging to %s" % 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