diff --git a/packages/server/src/threads/automation.ts b/packages/server/src/threads/automation.ts index 563af933038..6ed8506b85b 100644 --- a/packages/server/src/threads/automation.ts +++ b/packages/server/src/threads/automation.ts @@ -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 {