summaryrefslogtreecommitdiff
path: root/internal/handler/exec.go
diff options
context:
space:
mode:
authorIgor Drozdov <idrozdov@gitlab.com>2021-09-15 20:46:00 +0300
committerIgor Drozdov <idrozdov@gitlab.com>2021-09-15 20:46:08 +0300
commitaf3aac6b459791fabd8ebc306cdff47c609fbf53 (patch)
tree159c78d0b98126365dd3f3f08502e4c4a5110033 /internal/handler/exec.go
parent3f640bdafe429501897541cadf2c268b13c4cf9f (diff)
downloadgitlab-shell-id-context-fields.tar.gz
Add context fields to loggingid-context-fields
It adds correlation ids wherever possible
Diffstat (limited to 'internal/handler/exec.go')
-rw-r--r--internal/handler/exec.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/handler/exec.go b/internal/handler/exec.go
index 27031b1..eb5211e 100644
--- a/internal/handler/exec.go
+++ b/internal/handler/exec.go
@@ -110,7 +110,7 @@ func getConn(ctx context.Context, gc *GitalyCommand) (*grpc.ClientConn, error) {
if serviceName == "" {
serviceName = "gitlab-shell-unknown"
- log.WithFields(log.Fields{"service_name": serviceName}).Warn("No gRPC service name specified, defaulting to gitlab-shell-unknown")
+ log.WithContextFields(ctx, log.Fields{"service_name": serviceName}).Warn("No gRPC service name specified, defaulting to gitlab-shell-unknown")
}
serviceName = fmt.Sprintf("%s-%s", serviceName, gc.ServiceName)