Merlijn van Deen has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/297900

Change subject: logging: fix debug logging
......................................................................

logging: fix debug logging

the basicConfig block was indented and thus only executed
if the logging level was INFO.

Change-Id: Ib5abf3e01bbe68ea1c552d8287812a24bab7c72e
---
M puppet_compiler/cli.py
1 file changed, 5 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/software/puppet-compiler 
refs/changes/00/297900/1

diff --git a/puppet_compiler/cli.py b/puppet_compiler/cli.py
index 62f9582..6ebe084 100644
--- a/puppet_compiler/cli.py
+++ b/puppet_compiler/cli.py
@@ -23,11 +23,11 @@
         else:
             lvl = logging.INFO
 
-            logging.basicConfig(
-                format='%(asctime)s %(levelname)s: %(message)s',
-                level=lvl,
-                datefmt='[ %Y-%m-%dT%H:%M:%S ]'
-            )
+        logging.basicConfig(
+            format='%(asctime)s %(levelname)s: %(message)s',
+            level=lvl,
+            datefmt='[ %Y-%m-%dT%H:%M:%S ]'
+        )
         if not change:
             _log.critical("No change provided, we cannot do anything")
             sys.exit(2)

-- 
To view, visit https://gerrit.wikimedia.org/r/297900
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib5abf3e01bbe68ea1c552d8287812a24bab7c72e
Gerrit-PatchSet: 1
Gerrit-Project: operations/software/puppet-compiler
Gerrit-Branch: master
Gerrit-Owner: Merlijn van Deen <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to