diff --git a/lib/request.js b/lib/request.js index 865d701f..86e48f39 100644 --- a/lib/request.js +++ b/lib/request.js @@ -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); diff --git a/lib/session.js b/lib/session.js index 3365bdce..1ad4a693 100644 --- a/lib/session.js +++ b/lib/session.js @@ -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); diff --git a/scripts/build-geo.js b/scripts/build-geo.js index 6a141dba..f5aa8fee 100644 --- a/scripts/build-geo.js +++ b/scripts/build-geo.js @@ -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); } });