Add output logs in raw commands

This commit is contained in:
lowlighter
2021-02-11 19:07:13 +01:00
parent a0eaef9450
commit 1dd2d15133
2 changed files with 3 additions and 0 deletions

View File

@@ -106,6 +106,8 @@
child.stderr.on("data", data => stderr += data)
child.on("close", code => {
console.debug(`metrics/command > ${command} > exited with code ${code}`)
console.debug(stdout)
console.debug(stderr)
return code === 0 ? solve(stdout) : reject(stderr)
})
})