From 3f75bfec73ff229d2fb37356f8100153cb8eadd2 Mon Sep 17 00:00:00 2001 From: freearhey Date: Thu, 8 Aug 2019 03:32:27 +0300 Subject: [PATCH] Small refactoring --- test/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/index.js b/test/index.js index 45bf5e7b4..a8543d159 100644 --- a/test/index.js +++ b/test/index.js @@ -53,7 +53,7 @@ async function test() { stats.failures++ - writeToLog('test', country.url, err.message, item.url) + writeToLog(country.url, err.message, item.url) } @@ -76,9 +76,9 @@ console.log('Test is running...') test() -function writeToLog(test, country, msg, url) { +function writeToLog(country, msg, url) { var now = new Date() - var line = `${test}(): ${country}: ${msg} '${url}'` + var line = `${country}: ${msg} '${url}'` util.appendToFile(errorLog, now.toISOString() + ' ' + line + '\n') console.log(`Error: ${msg} '${url}'`) }