already tested IPs should be logged on debug level

This commit is contained in:
Elijah R 2024-07-26 15:10:24 -04:00
parent ab81bd17e8
commit 86e1bc034f

View file

@ -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: {