From 01bc2643f3c5b4f349c2f55d1a5b919a2c37bdc8 Mon Sep 17 00:00:00 2001 From: Christopher Schleiden Date: Mon, 20 Nov 2023 19:24:51 -0800 Subject: [PATCH] Include workflow name in log output --- client/client.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/client.go b/client/client.go index e580767c..3f0e04dd 100644 --- a/client/client.go +++ b/client/client.go @@ -85,7 +85,12 @@ func (c *Client) CreateWorkflowInstance(ctx context.Context, options WorkflowIns return nil, fmt.Errorf("creating workflow instance: %w", err) } - c.backend.Logger().Debug("Created workflow instance", log.InstanceIDKey, wfi.InstanceID, log.ExecutionIDKey, wfi.ExecutionID) + c.backend.Logger().Debug( + "Created workflow instance", + log.InstanceIDKey, wfi.InstanceID, + log.ExecutionIDKey, wfi.ExecutionID, + log.WorkflowNameKey, workflowName, + ) c.backend.Metrics().Counter(metrickeys.WorkflowInstanceCreated, metrics.Tags{}, 1)