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