update log formatting

This commit is contained in:
Peter Clement 2023-05-31 10:51:54 +01:00
parent 702c908ae8
commit 162ea5d969
1 changed files with 9 additions and 0 deletions

View File

@ -252,6 +252,7 @@ class Orchestrator {
return return
} }
} }
const start = performance.now()
for (let step of automation.definition.steps) { for (let step of automation.definition.steps) {
if (timeoutFlag) { if (timeoutFlag) {
break break
@ -473,6 +474,14 @@ class Orchestrator {
} }
} }
const end = performance.now()
const executionTime = end - start
console.info(`Execution time: ${executionTime} milliseconds`, {
_logKey: "automation",
executionTime,
})
// store the logs for the automation run // store the logs for the automation run
try { try {
await storeLog(this._automation, this.executionOutput) await storeLog(this._automation, this.executionOutput)