Skip to content

Commit

Permalink
[backend] use component name in traces and fix warn issue.(#8352)(#8310)
Browse files Browse the repository at this point in the history
  • Loading branch information
aHenryJard authored Oct 8, 2024
1 parent ae26e60 commit 93f1a93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export const playbookExecutor = async ({
const durationDiff = end.diff(start);
const duration = moment.duration(durationDiff);
const observation: ObservationFn = {
message: `${nextStep.component.name.trim()} successfully executed in ${duration.humanize()}`,
message: `${nextStep.instance.name.trim()} successfully executed in ${duration.humanize()}`,
status: 'success',
executionId,
previousStepId: previousStep?.instance?.id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const PLAYBOOK_LOGGER_COMPONENT_SCHEMA: JSONSchemaType<LoggerConfiguration> = {
oneOf: [
{ const: 'debug', title: 'debug' },
{ const: 'info', title: 'info' },
{ const: 'warning', title: 'warning' },
{ const: 'warn', title: 'warn' },
{ const: 'error', title: 'error' }
]
},
Expand Down

0 comments on commit 93f1a93

Please sign in to comment.