summaryrefslogtreecommitdiffstats
path: root/gitautodeploy/parsers/github.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/parsers/github.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/parsers/github.py')
-rw-r--r--gitautodeploy/parsers/github.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/gitautodeploy/parsers/github.py b/gitautodeploy/parsers/github.py
index 82785c3..7077def 100644
--- a/gitautodeploy/parsers/github.py
+++ b/gitautodeploy/parsers/github.py
@@ -15,7 +15,7 @@ class GitHubRequestParser(WebhookRequestParser):
github_event = 'x-github-event' in request_headers and request_headers['x-github-event']
- logger.info("Received '%s' event from GitHub" % github_event)
+ logger.debug("Received '%s' event from GitHub" % github_event)
if 'repository' not in data:
logger.error("Unable to recognize data format")
@@ -30,14 +30,14 @@ class GitHubRequestParser(WebhookRequestParser):
if 'base' in data['pull_request']:
if 'ref' in data['pull_request']['base']:
ref = data['pull_request']['base']['ref']
- logger.info("Pull request to branch '%s' was fired" % ref)
+ logger.debug("Pull request to branch '%s' was fired" % ref)
elif 'ref' in data:
ref = data['ref']
- logger.info("Push to branch '%s' was fired" % ref)
+ logger.debug("Push to branch '%s' was fired" % ref)
if 'action' in data:
action = data['action']
- logger.info("Action '%s' was fired" % action)
+ logger.debug("Action '%s' was fired" % action)
# Get a list of configured repositories that matches the incoming web hook reqeust
items = self.get_matching_repo_configs(repo_urls)