From cbc7718808f990927c096424ead3ee94fdaf21f2 Mon Sep 17 00:00:00 2001 From: Will Hunt Date: Fri, 9 Sep 2022 09:31:25 +0100 Subject: [PATCH] Move noisy log line to debug (#473) * Move noisy log level to debug I think I meant to actually set this to debug before :/ * Create 473.bugfix --- changelog.d/473.bugfix | 1 + src/Webhooks.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/473.bugfix diff --git a/changelog.d/473.bugfix b/changelog.d/473.bugfix new file mode 100644 index 00000000..5cadb1d1 --- /dev/null +++ b/changelog.d/473.bugfix @@ -0,0 +1 @@ +Log noisy "Got GitHub webhook event" log line at debug level. diff --git a/src/Webhooks.ts b/src/Webhooks.ts index 1556900b..fd7b5c31 100644 --- a/src/Webhooks.ts +++ b/src/Webhooks.ts @@ -124,7 +124,7 @@ export class Webhooks extends EventEmitter { private async onGitHubPayload({id, name, payload}: EmitterWebhookEvent) { const action = (payload as unknown as {action: string|undefined}).action; const eventName = `github.${name}${action ? `.${action}` : ""}`; - log.info(`Got GitHub webhook event ${id} ${eventName}`, payload); + log.debug(`Got GitHub webhook event ${id} ${eventName}`, payload); try { await this.queue.push({ eventName,