]> git.ipfire.org Git - people/ms/libloc.git/blobdiff - src/python/location-importer.in
python: Correctly set log level for root logger
[people/ms/libloc.git] / src / python / location-importer.in
index fe7c0b1b9f612b18299012c44cc42c8071e8c9c4..45cacad81c58db8b0aeed25cac7333092c54049e 100644 (file)
@@ -93,7 +93,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: