From af3aac6b459791fabd8ebc306cdff47c609fbf53 Mon Sep 17 00:00:00 2001 From: Igor Drozdov Date: Wed, 15 Sep 2021 20:46:00 +0300 Subject: Add context fields to logging It adds correlation ids wherever possible --- internal/command/shared/customaction/customaction.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/command') diff --git a/internal/command/shared/customaction/customaction.go b/internal/command/shared/customaction/customaction.go index 34086fb..73d2ce4 100644 --- a/internal/command/shared/customaction/customaction.go +++ b/internal/command/shared/customaction/customaction.go @@ -64,7 +64,7 @@ func (c *Command) processApiEndpoints(ctx context.Context, response *accessverif "endpoint": endpoint, } - log.WithFields(fields).Info("Performing custom action") + log.WithContextFields(ctx, fields).Info("Performing custom action") response, err := c.performRequest(ctx, client, endpoint, request) if err != nil { -- cgit v1.2.1