Skip to content

Commit

Permalink
AV-1959: Remove unnecessary logging
Browse files Browse the repository at this point in the history
  • Loading branch information
bzar committed Oct 9, 2023
1 parent 43b07b9 commit f53d81d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cdk/lib/send-to-zulip.function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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', () => {
Expand Down

0 comments on commit f53d81d

Please sign in to comment.