correct logging parameter

* fix loglevel be set to the correct logging parameter
This commit is contained in:
nico 2018-11-11 03:09:57 +01:00
parent b6b84108ed
commit 1b13bdfd92
No known key found for this signature in database
GPG key ID: EA7C31AAB1BDC1A2

View file

@ -170,7 +170,7 @@ if __name__ == '__main__':
args = parser.parse_args() args = parser.parse_args()
# logging # 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__) logger = logging.getLogger(__name__)
# configfile # configfile