summaryrefslogtreecommitdiffstats
path: root/gitautodeploy/gitautodeploy.py
diff options
context:
space:
mode:
authorOliver Poignant <oliver@poignant.se>2016-05-12 19:03:22 +0200
committerOliver Poignant <oliver@poignant.se>2016-05-12 19:03:22 +0200
commit316880b1afaf69cdc7c054528393184aa0818b7c (patch)
treec2fcec877439bd0a7e063d4f12cf707c1f4e563f /gitautodeploy/gitautodeploy.py
parenta8b34d023e19dcad7c467d0bdf519ecac602de19 (diff)
downloadGit-Auto-Deploy-316880b1afaf69cdc7c054528393184aa0818b7c.zip
Git-Auto-Deploy-316880b1afaf69cdc7c054528393184aa0818b7c.tar.gz
Git-Auto-Deploy-316880b1afaf69cdc7c054528393184aa0818b7c.tar.bz2
Changing log levels and cleaning up console output
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 1a04b5a..342ce9e 100644
--- a/gitautodeploy/gitautodeploy.py
+++ b/gitautodeploy/gitautodeploy.py
@@ -106,13 +106,15 @@ class GitAutoDeploy(object):
# Only clone repositories with a configured path
if 'path' not in repo_config:
- logger.info("Repository %s will not be cloned (no path configured)" % repo_config['url'])
+ logger.debug("Repository %s will not be cloned (no path configured)" % repo_config['url'])
continue
if os.path.isdir(repo_config['path']) and os.path.isdir(repo_config['path']+'/.git'):
- logger.info("Repository %s already present" % repo_config['url'])
+ logger.debug("Repository %s already present" % repo_config['url'])
continue
+ logger.info("Repository %s not present and needs to be cloned" % repo_config['url'])
+
# Clone repository
ret = GitWrapper.clone(url=repo_config['url'], branch=repo_config['branch'], path=repo_config['path'])