From 5d5f8208a4d9cee99c3823d570c3e8342a6a897c Mon Sep 17 00:00:00 2001 From: Brian Stinson Date: Feb 27 2018 19:29:20 +0000 Subject: [PATCH 1/2] add the repo in the debug output --- diff --git a/app/webhooks.py b/app/webhooks.py index 98b3a1b..05e3707 100644 --- a/app/webhooks.py +++ b/app/webhooks.py @@ -101,7 +101,7 @@ def openshift_jenkins(): if is_signature_valid(webhook_key, signature, data): topic = request.headers.get('X-Pagure-Topic') - log.debug('Webhook topic received : {}'.format(topic)) + log.debug('Webhook received : Repo: {}, Topic:{}'.format(project_fullname, topic)) if topic in ['git.receive', 'pull-request.new']: server = Jenkins(current_app.config['JENKINS_URL']) From 11f8f29bb8168e5140abed25b588a8b114f99959 Mon Sep 17 00:00:00 2001 From: Brian Stinson Date: Feb 27 2018 19:32:32 +0000 Subject: [PATCH 2/2] forgot to stage the one for the openshift endpoint --- diff --git a/app/webhooks.py b/app/webhooks.py index 05e3707..1ce14d1 100644 --- a/app/webhooks.py +++ b/app/webhooks.py @@ -30,7 +30,7 @@ def openshift_generic(): if is_signature_valid(webhook_key, signature, data): topic = request.headers.get('X-Pagure-Topic') - log.debug('Webhook topic received : {}'.format(topic)) + log.debug('Webhook received : Repo: {}, Topic: {}'.format(project_fullname, topic)) if topic == 'git.receive': url = 'https://{cluster}/oapi/v1/namespaces/{project}/buildconfigs'\ @@ -101,7 +101,7 @@ def openshift_jenkins(): if is_signature_valid(webhook_key, signature, data): topic = request.headers.get('X-Pagure-Topic') - log.debug('Webhook received : Repo: {}, Topic:{}'.format(project_fullname, topic)) + log.debug('Webhook received : Repo: {}, Topic: {}'.format(project_fullname, topic)) if topic in ['git.receive', 'pull-request.new']: server = Jenkins(current_app.config['JENKINS_URL'])