From fcc13da23d509a3f62ce15f4174a48d56cc492ef Mon Sep 17 00:00:00 2001 From: zomars Date: Fri, 14 Jul 2023 16:02:10 -0700 Subject: [PATCH] Update rateLimit.ts --- packages/lib/rateLimit.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/lib/rateLimit.ts b/packages/lib/rateLimit.ts index 487247ec6b..ab8c4452f9 100644 --- a/packages/lib/rateLimit.ts +++ b/packages/lib/rateLimit.ts @@ -36,7 +36,7 @@ let warningDisplayed = false; /** Prevent flooding the logs while testing/building */ function logOnce(message: string) { - if (!warningDisplayed) return; + if (warningDisplayed) return; log.warn(message); warningDisplayed = true; }