remove console logs
parent
3bca3ef072
commit
911eae897f
|
@ -70,7 +70,6 @@ export async function getCountry(req, ip) {
|
|||
// Database lookup
|
||||
if (!lookup) {
|
||||
lookup = await maxmind.open(path.resolve('node_modules/.geo/GeoLite2-City.mmdb'));
|
||||
// lookup = await maxmind.open(path.resolve('node_modules/.geo/GeoLite2-Country.mmdb'));
|
||||
}
|
||||
|
||||
const result = lookup.get(ip);
|
||||
|
|
|
@ -49,10 +49,6 @@ export async function getSession(req) {
|
|||
// const ip = req.headers['x-forwarded-for'] || req.connection.remoteAddress;
|
||||
const { userAgent, browser, os, ip, country, device } = await getClientInfo(req, payload);
|
||||
|
||||
console.log('headers:', JSON.stringify(req.headers, null, 1));
|
||||
|
||||
console.log('ip:', ip);
|
||||
|
||||
let session_uuid = uuid(websiteId, hostname, ip, userAgent);
|
||||
if (process.env.CROSSDOMAIN_TRACKING) {
|
||||
session_uuid = uuid(websiteId, ip);
|
||||
|
|
|
@ -38,8 +38,6 @@ download(url).then(
|
|||
if (entry.path.endsWith('.mmdb')) {
|
||||
const filename = path.join(dest, path.basename(entry.path));
|
||||
entry.pipe(fs.createWriteStream(filename));
|
||||
|
||||
console.log('Saved countries geo database:', filename);
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -58,8 +56,6 @@ download(citiesUrl).then(
|
|||
if (entry.path.endsWith('.mmdb')) {
|
||||
const filename = path.join(dest, path.basename(entry.path));
|
||||
entry.pipe(fs.createWriteStream(filename));
|
||||
|
||||
console.log('Saved cities geo database:', filename);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue