From cd2affbaaa900270e72c44bf79d9b20db7c21f22 Mon Sep 17 00:00:00 2001 From: shiftinv Date: Sun, 4 Sep 2022 14:54:46 +0200 Subject: [PATCH] chore: remove review comment debug logs --- lib/filter.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/filter.ts b/lib/filter.ts index 7bc81df..46e47be 100644 --- a/lib/filter.ts +++ b/lib/filter.ts @@ -1,4 +1,4 @@ -import { log, TTL } from "../deps.ts"; +import { TTL } from "../deps.ts"; import { UrlConfig } from "./types.d.ts"; const reviewComments = new TTL(2 * 1000); @@ -44,8 +44,6 @@ export default function filter(headers: Headers, json: any, config: UrlConfig): const reviewId: number = json.comment?.pull_request_review_id; if (config.commentBurstLimit && reviewId) { const cacheKey = `${reviewId}-${login}`; - log.debug(`filter: checking cache key ${cacheKey}`); - log.debug(`filter: full comment cache ${JSON.stringify(Array.from(reviewComments))}`); const curr = reviewComments.get(cacheKey); if (curr && curr >= config.commentBurstLimit) { return `exceeded comment burst limit ${config.commentBurstLimit} for review ${reviewId}`;