mirror of
https://github.com/umami-software/umami.git
synced 2026-02-21 04:55:36 +01:00
Add fluentd
This commit is contained in:
parent
3bca3ef072
commit
f4d52fcd98
4 changed files with 26 additions and 1 deletions
|
|
@ -12,6 +12,7 @@ import {
|
|||
LAPTOP_SCREEN_WIDTH,
|
||||
MOBILE_SCREEN_WIDTH,
|
||||
} from './constants';
|
||||
import logger from './logger';
|
||||
|
||||
let lookup;
|
||||
|
||||
|
|
@ -75,7 +76,7 @@ export async function getCountry(req, ip) {
|
|||
|
||||
const result = lookup.get(ip);
|
||||
|
||||
console.log(JSON.stringify(result));
|
||||
logger.emit('getCountry', { result });
|
||||
|
||||
return result?.country?.iso_code;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue