From fc53c6cdfe5bd3a9567a8e405efdd54bf2404fc4 Mon Sep 17 00:00:00 2001 From: Owen Cabalceta Date: Wed, 9 Aug 2023 14:12:08 -0400 Subject: [PATCH] patch: add missing log field `satClientID` --- basculehttp/log.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/basculehttp/log.go b/basculehttp/log.go index cdfd0a6..8c307e7 100644 --- a/basculehttp/log.go +++ b/basculehttp/log.go @@ -125,10 +125,7 @@ func SetBasculeInfo() alice.Constructor { satClientID = auth.Token.Principal() } - logger.With(zap.String("satClientID", satClientID)) - - r = r.WithContext(sallust.With(ctx, logger)) - + r = r.WithContext(sallust.With(ctx, logger.With(zap.String("satClientID", satClientID)))) delegate.ServeHTTP(w, r) }) }