From 0ad9cbac482ae4497aa0a3057980b21fb70e588c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 23 Apr 2026 05:53:53 +0000 Subject: [PATCH 1/2] Initial plan From 9e1ed9ba883901a90f9af67a0339ac4baa87e21b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 23 Apr 2026 06:06:20 +0000 Subject: [PATCH 2/2] fix(workflow): guard debug logs in error constructors Agent-Logs-Url: https://github.com/github/gh-aw/sessions/0832ebeb-db42-49e2-a960-ee5e146d9b63 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- pkg/workflow/workflow_errors.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkg/workflow/workflow_errors.go b/pkg/workflow/workflow_errors.go index a3031e3a717..c7eb5913677 100644 --- a/pkg/workflow/workflow_errors.go +++ b/pkg/workflow/workflow_errors.go @@ -63,7 +63,9 @@ func (e *WorkflowValidationError) Error() string { // NewValidationError creates a new validation error with context func NewValidationError(field, value, reason, suggestion string) *WorkflowValidationError { - errorHelpersLog.Printf("Creating validation error: field=%s, reason=%s", field, reason) + if errorHelpersLog.Enabled() { + errorHelpersLog.Printf("Creating validation error: field=%s, reason=%s", field, reason) + } return &WorkflowValidationError{ Field: field, Value: value, @@ -168,7 +170,9 @@ func (e *ConfigurationError) Error() string { // NewConfigurationError creates a new configuration error with context func NewConfigurationError(configKey, value, reason, suggestion string) *ConfigurationError { - errorHelpersLog.Printf("Creating configuration error: configKey=%s, reason=%s", configKey, reason) + if errorHelpersLog.Enabled() { + errorHelpersLog.Printf("Creating configuration error: configKey=%s, reason=%s", configKey, reason) + } return &ConfigurationError{ ConfigKey: configKey, Value: value,