Merge pull request #10744 from Budibase/fix/looping-performance-bug

Update logging for automations
This commit is contained in:
Peter Clement 2023-05-31 11:42:48 +01:00 committed by GitHub
commit dded232a39
1 changed files with 5 additions and 1 deletions

View File

@ -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 {