Skip to content

Commit 9ccca32

Browse files
committed
debug: geo db path
1 parent 86a3da8 commit 9ccca32

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/geo/src/geo.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ let readerPromise: Promise<ReaderModel | null> | null = null;
2121
async function loadDatabase(): Promise<ReaderModel | null> {
2222
try {
2323
const dbBuffer = await readFile(dbPath);
24-
console.log('GeoLite2-City.mmdb loaded (dist)');
24+
console.log('GeoLite2-City.mmdb loaded (dist)', dbPath);
2525
return Reader.openBuffer(dbBuffer);
2626
} catch {
2727
try {
2828
const dbBuffer = await readFile(dbPathLocal);
29-
console.log('GeoLite2-City.mmdb loaded (local)');
29+
console.log('GeoLite2-City.mmdb loaded (local)', dbPathLocal);
3030
return Reader.openBuffer(dbBuffer);
3131
} catch {
32-
console.error('GeoLite2-City.mmdb not found');
32+
console.error('GeoLite2-City.mmdb not found', { dbPath, dbPathLocal });
3333
return null;
3434
}
3535
}

0 commit comments

Comments
 (0)