chore: remove review comment debug logs

This commit is contained in:
shiftinv 2022-09-04 14:54:46 +02:00
parent 9b22ac70b7
commit cd2affbaaa
1 changed files with 1 additions and 3 deletions

View File

@ -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<number>(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}`;