mirror of
https://github.com/umami-software/umami.git
synced 2026-02-19 20:15:41 +01:00
add debug
This commit is contained in:
parent
0c2fc959f7
commit
ddca717707
1 changed files with 2 additions and 0 deletions
|
|
@ -109,6 +109,8 @@ export async function getLocation(ip: string, req: NextApiRequestCollect) {
|
||||||
|
|
||||||
// Database lookup
|
// Database lookup
|
||||||
if (!lookup) {
|
if (!lookup) {
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
|
console.log('debug: loading GeoLite2-City.mmdb');
|
||||||
const dir = path.join(process.cwd(), 'geo');
|
const dir = path.join(process.cwd(), 'geo');
|
||||||
|
|
||||||
lookup = await maxmind.open(path.resolve(dir, 'GeoLite2-City.mmdb'));
|
lookup = await maxmind.open(path.resolve(dir, 'GeoLite2-City.mmdb'));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue