From f53d81dc3ce615fc4d0d79b5ebabda252ec72c92 Mon Sep 17 00:00:00 2001 From: Teemu Erkkola Date: Mon, 9 Oct 2023 12:24:49 +0300 Subject: [PATCH] AV-1959: Remove unnecessary logging --- cdk/lib/send-to-zulip.function.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cdk/lib/send-to-zulip.function.ts b/cdk/lib/send-to-zulip.function.ts index a870d7ddb6..f1133c0480 100644 --- a/cdk/lib/send-to-zulip.function.ts +++ b/cdk/lib/send-to-zulip.function.ts @@ -20,7 +20,6 @@ function eventMessage(event: any) { } } export const handler: Handler = async (event: any) => { - console.log(event); if(!ZULIP_API_URL || !ZULIP_API_USER || !ZULIP_API_KEY_SECRET || !ZULIP_STREAM || !ZULIP_TOPIC) { return { @@ -55,8 +54,8 @@ export const handler: Handler = async (event: any) => { await new Promise((resolve, reject) => { const req = https.request(options, (res: any) => { - console.log('Response from Zulip API:', res.statusCode); if(res.statusCode != 200) { + console.log('Response from Zulip API:', res.statusCode); res.on('data', (chunk: any) => { console.log(chunk.toString()); }).on('end', () => {