Merge pull request #10744 from Budibase/fix/looping-performance-bug
Update logging for automations
This commit is contained in:
commit
dded232a39
|
@ -31,6 +31,7 @@ import { WorkerCallback } from "./definitions"
|
|||
import { context, logging } from "@budibase/backend-core"
|
||||
import { processObject } from "@budibase/string-templates"
|
||||
import { cloneDeep } from "lodash/fp"
|
||||
import { performance } from "perf_hooks"
|
||||
import * as sdkUtils from "../sdk/utils"
|
||||
import env from "../environment"
|
||||
const FILTER_STEP_ID = actions.BUILTIN_ACTION_DEFINITIONS.FILTER.stepId
|
||||
|
@ -477,7 +478,10 @@ class Orchestrator {
|
|||
const end = performance.now()
|
||||
const executionTime = end - start
|
||||
|
||||
console.log(`Execution time: ${executionTime} milliseconds`)
|
||||
console.info(`Execution time: ${executionTime} milliseconds`, {
|
||||
_logKey: "automation",
|
||||
executionTime,
|
||||
})
|
||||
|
||||
// store the logs for the automation run
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue