Remove duplicates from log

This commit is contained in:
freearhey 2020-09-17 16:51:03 +03:00
parent 0920ccb1cf
commit e0f6c38d81

View File

@ -34,7 +34,11 @@ async function test() {
parallel: 1,
itemCallback: item => {
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++
helper.writeToLog(country.url, item.status.reason, item.url)