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",
action="store_true")
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,6 +341,7 @@ class Daemon(object): ...@@ -341,6 +341,7 @@ class Daemon(object):
def runner(config): def runner(config):
ioloop.install() ioloop.install()
if config.verbose:
logger.setLevel(logging.DEBUG) logger.setLevel(logging.DEBUG)
if config.nrm_log: if 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