summaryrefslogtreecommitdiff
path: root/internal/command/shared/customaction/customaction.go
diff options
context:
space:
mode:
authorAsh McKenzie <amckenzie@gitlab.com>2021-09-16 02:14:48 +0000
committerAsh McKenzie <amckenzie@gitlab.com>2021-09-16 02:14:48 +0000
commit37025e61e570e748613d9a5a57a7ae5de1b45af5 (patch)
tree159c78d0b98126365dd3f3f08502e4c4a5110033 /internal/command/shared/customaction/customaction.go
parent3f640bdafe429501897541cadf2c268b13c4cf9f (diff)
parentaf3aac6b459791fabd8ebc306cdff47c609fbf53 (diff)
downloadgitlab-shell-37025e61e570e748613d9a5a57a7ae5de1b45af5.tar.gz
Merge branch 'id-context-fields' into 'main'
Add context fields to logging See merge request gitlab-org/gitlab-shell!524
Diffstat (limited to 'internal/command/shared/customaction/customaction.go')
-rw-r--r--internal/command/shared/customaction/customaction.go2
1 files changed, 1 insertions, 1 deletions
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 {