Enhanced debugging and reduce verbose config logs

- Change trigger debugging from debug to info level for visibility
- Add trigger condition evaluation logging with doc status
- Reduce verbose plugin config logs that spam dev console
- Help customer diagnose trigger matching issues more effectively
This commit is contained in:
2025-09-09 12:14:31 +02:00
parent c050ee835a
commit b3d2877f0a
2 changed files with 9 additions and 7 deletions

View File

@@ -1029,7 +1029,7 @@ export class WorkflowExecutor {
}
}>
this.logger.debug({
this.logger.info({
workflowId: workflow.id,
workflowName: workflow.name,
triggerCount: triggers?.length || 0,
@@ -1090,7 +1090,7 @@ export class WorkflowExecutor {
// Check trigger condition if present
if (trigger.condition) {
this.logger.debug({
this.logger.info({
collection,
operation,
condition: trigger.condition,
@@ -1098,8 +1098,10 @@ export class WorkflowExecutor {
docFields: doc ? Object.keys(doc) : [],
previousDocId: (previousDoc as any)?.id,
workflowId: workflow.id,
workflowName: workflow.name
}, 'Evaluating collection trigger condition')
workflowName: workflow.name,
docStatus: (doc as any)?.status,
previousDocStatus: (previousDoc as any)?.status
}, 'Evaluating trigger condition before execution')
const conditionMet = this.evaluateCondition(trigger.condition, context)