From ddca7177076896e61e24fcd42209334547f357aa Mon Sep 17 00:00:00 2001 From: Volodymyr Kravchenko Date: Wed, 5 Feb 2025 23:50:15 +0200 Subject: [PATCH] add debug --- src/lib/detect.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/detect.ts b/src/lib/detect.ts index c3ce6feed..c67fbe602 100644 --- a/src/lib/detect.ts +++ b/src/lib/detect.ts @@ -109,6 +109,8 @@ export async function getLocation(ip: string, req: NextApiRequestCollect) { // Database lookup if (!lookup) { + // eslint-disable-next-line no-console + console.log('debug: loading GeoLite2-City.mmdb'); const dir = path.join(process.cwd(), 'geo'); lookup = await maxmind.open(path.resolve(dir, 'GeoLite2-City.mmdb'));