]> git.ipfire.org Git - location/libloc.git/blobdiff - src/python/location-exporter.in
python: Correctly set log level for root logger
[location/libloc.git] / src / python / location-exporter.in
index 3e53d4183c5f8e970972fb521e073db589e9e921..634b8625ba82feee8d3088bf0f82c07dc250912f 100644 (file)
@@ -224,7 +224,7 @@ class CLI(object):
 
                # Enable debug logging
                if args.debug:
-                       log.setLevel(logging.DEBUG)
+                       location.logger.set_level(logging.DEBUG)
 
                return args