This commit is contained in:
Aleksandr Statciuk 2022-01-10 15:00:35 +03:00
parent b9ab8ee78e
commit ba6036dd7d
18 changed files with 105 additions and 740 deletions

View file

@ -4,6 +4,7 @@ const _ = require('lodash')
const LOGS_DIR = process.env.LOGS_DIR || 'scripts/logs'
async function main() {
await db.programs.reset()
const files = await file.list(`${LOGS_DIR}/load-cluster/cluster_*.log`)
for (const filepath of files) {
const results = await parser.parseLogs(filepath)