Remove duplicates from log

This commit is contained in:
freearhey 2020-09-17 16:51:03 +03:00
parent 0920ccb1cf
commit e0f6c38d81
1 changed files with 5 additions and 1 deletions

View File

@ -34,7 +34,11 @@ async function test() {
parallel: 1, parallel: 1,
itemCallback: item => { itemCallback: item => {
stats.channels++ stats.channels++
if (!item.status.ok && item.status.reason !== 'Timed out') { if (
!item.status.ok &&
item.status.reason !== 'Timed out' &&
item.status.reason !== 'Duplicate'
) {
stats.failures++ stats.failures++
helper.writeToLog(country.url, item.status.reason, item.url) helper.writeToLog(country.url, item.status.reason, item.url)