process.env.NODE_ENV === 'development'
This commit is contained in:
parent
9981a2991d
commit
a6c7d26bd5
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
|
@ -146,7 +146,7 @@ const reportIP = async (event, country, hostname, endpoint, userAgent, cycleErro
|
||||||
const minutesAgo = Math.floor((timeDifference % (1000 * 60 * 60)) / (1000 * 60));
|
const minutesAgo = Math.floor((timeDifference % (1000 * 60 * 60)) / (1000 * 60));
|
||||||
const secondsAgo = Math.floor((timeDifference % (1000 * 60)) / 1000);
|
const secondsAgo = Math.floor((timeDifference % (1000 * 60)) / 1000);
|
||||||
|
|
||||||
log('log', `${ip} was ${reason} ${hoursAgo}h ${minutesAgo}m ${secondsAgo}s ago. Skipping...`);
|
if (process.env.NODE_ENV === 'development') log('log', `${ip} was ${reason} ${hoursAgo}h ${minutesAgo}m ${secondsAgo}s ago. Skipping...`);
|
||||||
cycleSkippedCount++;
|
cycleSkippedCount++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue