]> git.ipfire.org Git - location/libloc.git/blobdiff - src/python/location-downloader.in
python: Correctly set log level for root logger
[location/libloc.git] / src / python / location-downloader.in
index 2d38136f9a577789676fb3b57b30b762aa956b25..f1d38f1418a87c803d78ee18beea13932aef5fae 100644 (file)
@@ -247,7 +247,7 @@ class CLI(object):
 
                # Enable debug logging
                if args.debug:
-                       log.setLevel(logging.DEBUG)
+                       location.logger.set_level(logging.DEBUG)
 
                # Print usage if no action was given
                if not "func" in args: