summaryrefslogtreecommitdiffstats
path: root/gitautodeploy/gitautodeploy.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitautodeploy/gitautodeploy.py')
-rw-r--r--gitautodeploy/gitautodeploy.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/gitautodeploy/gitautodeploy.py b/gitautodeploy/gitautodeploy.py
index 5341f52..cd90846 100644
--- a/gitautodeploy/gitautodeploy.py
+++ b/gitautodeploy/gitautodeploy.py
@@ -243,8 +243,10 @@ class GitAutoDeploy(object):
consoleHandler.setFormatter(logFormatter)
logger.addHandler(consoleHandler)
- # All logs are recording
- logger.setLevel(logging.NOTSET)
+ # Set logging level
+ if 'log-level' in self._config:
+ level = logging.getLevelName(self._config['log-level'])
+ logger.setLevel(level)
if 'logfilepath' in self._config and self._config['logfilepath']:
# Translate any ~ in the path into /home/<user>