mirror of
https://github.com/iptv-org/iptv
synced 2026-10-27 21:38:20 -04:00
Small refactoring
This commit is contained in:
1 parent
b8f1986282
commit
3f75bfec73
1 file changed
+3
-3
+3
-3
@@ -53,7 +53,7 @@ async function test() {
|
|||||||
|
|
||||||
stats.failures++
|
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()
|
test()
|
||||||
|
|
||||||
function writeToLog(test, country, msg, url) {
|
function writeToLog(country, msg, url) {
|
||||||
var now = new Date()
|
var now = new Date()
|
||||||
var line = `${test}(): ${country}: ${msg} '${url}'`
|
var line = `${country}: ${msg} '${url}'`
|
||||||
util.appendToFile(errorLog, now.toISOString() + ' ' + line + '\n')
|
util.appendToFile(errorLog, now.toISOString() + ' ' + line + '\n')
|
||||||
console.log(`Error: ${msg} '${url}'`)
|
console.log(`Error: ${msg} '${url}'`)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user