Browse Source

only use log level from config if there is a config object

Helmut Pozimski 7 years ago
parent
commit
2b767f9e10
1 changed files with 3 additions and 1 deletions
  1. 3 1
      amulib/main.py

+ 3 - 1
amulib/main.py

@@ -65,8 +65,10 @@ def main():
             sys.exit(1)
     if args.verbose:
         logger.setLevel(logging.DEBUG)
-    else:
+    elif config:
         logger.setLevel(get_log_level(config["loglevel"]))
+    else:
+        logger.setLevel(logging.INFO)
     if args.apache:
         if config:
             apache.run(config["apache"], config["acme_dir"],