remove console logs

pull/1644/head
Sergei Meza 2022-11-09 14:28:37 +09:00
parent 3bca3ef072
commit 911eae897f
3 changed files with 0 additions and 9 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);
}
});