Commit 32a18846 authored by Pietro Saccardi's avatar Pietro Saccardi

Logging when switching logger.

parent 7c0d89b3
Pipeline #385 passed with stage
in 7 minutes and 1 second
......@@ -17,6 +17,7 @@ def main(args):
if args.token:
SETTINGS.telegram.token = args.token
if args.logfile is not None:
logging.info('Switching over to logging to %s', args.logfile)
ensure_logging_setup(logging.DEBUG if args.verbose else logging.INFO, reset=True, filename=args.logfile)
else:
ensure_logging_setup(logging.DEBUG if args.verbose else logging.INFO, reset=True)
......
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