From 1b13bdfd926e394cab2a2edd15ecabf0afcc4cf2 Mon Sep 17 00:00:00 2001 From: nico Date: Sun, 11 Nov 2018 03:09:57 +0100 Subject: [PATCH] correct logging parameter * fix loglevel be set to the correct logging parameter --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 24171cd..50f9b03 100755 --- a/main.py +++ b/main.py @@ -170,7 +170,7 @@ if __name__ == '__main__': args = parser.parse_args() # logging - logging.basicConfig(filename=args.logfile, level=logging.INFO, format='%(levelname)s: %(asctime)s: %(message)s') + logging.basicConfig(filename=args.logfile, level=args.loglevel, format='%(levelname)s: %(asctime)s: %(message)s') logger = logging.getLogger(__name__) # configfile