summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornico <nico@magicbroccoli.de>2018-11-11 03:09:57 +0100
committernico <nico@magicbroccoli.de>2018-11-11 03:09:57 +0100
commit1b13bdfd926e394cab2a2edd15ecabf0afcc4cf2 (patch)
tree3798538b14cc67e7deed4adc44957b4cc4607019
parentb6b84108ed24939a78ed4f6240b830860967136f (diff)
correct logging parameter
* fix loglevel be set to the correct logging parameter
-rwxr-xr-xmain.py2
1 files changed, 1 insertions, 1 deletions
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