Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update logging for automations #10744

Merged
merged 3 commits into from
May 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/server/src/threads/automation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -477,7 +478,10 @@ class Orchestrator {
const end = performance.now()
const executionTime = end - start

console.log(`Execution time: ${executionTime} milliseconds`)
PClmnt marked this conversation as resolved.
Show resolved Hide resolved
console.info(`Execution time: ${executionTime} milliseconds`, {
_logKey: "automation",
executionTime,
})

// store the logs for the automation run
try {
Expand Down