From 86e1bc034f97d1c011c5727c7472436d159ecc59 Mon Sep 17 00:00:00 2001 From: Elijah R Date: Fri, 26 Jul 2024 15:10:24 -0400 Subject: [PATCH] already tested IPs should be logged on debug level --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 1ec5ce7..8ed1584 100644 --- a/src/index.ts +++ b/src/index.ts @@ -81,12 +81,12 @@ app.get("/auth", async (req, res) => { switch (status) { case IPLookupResult.Allowed: { res.statusCode = 200; - logger.info(`${ip} is whitelisted.`); + logger.debug(`${ip} is whitelisted.`); return "PASS"; } case IPLookupResult.Blocked: { res.statusCode = 403; - logger.info(`${ip} is blocked.`); + logger.debug(`${ip} is blocked.`); return "FAIL"; } case IPLookupResult.Unlisted: {