mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-12 10:00:05 -04:00
Update cluster/load.js
This commit is contained in:
parent
b9eb8095e4
commit
c49a99b3d3
2 changed files with 9 additions and 3 deletions
|
@ -42,7 +42,13 @@ async function main() {
|
|||
} else {
|
||||
logger.info(`${message} (${result.error})`)
|
||||
}
|
||||
await file.append(clusterLog, JSON.stringify(result) + '\n')
|
||||
const output = {
|
||||
_id: result._id,
|
||||
error: result.error,
|
||||
streams: result.streams,
|
||||
requests: result.requests
|
||||
}
|
||||
await file.append(clusterLog, JSON.stringify(output) + '\n')
|
||||
}
|
||||
|
||||
logger.info(`done in ${timer.format('HH[h] mm[m] ss[s]')}`)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue