From 0324ce86029cdbadd1d85e62c3b10926aa97e1d8 Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Fri, 20 Jan 2023 12:42:16 -0600 Subject: [PATCH] Refactor --- pkg/log/log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/log/log.go b/pkg/log/log.go index aeec5421..70b6cd4f 100644 --- a/pkg/log/log.go +++ b/pkg/log/log.go @@ -43,7 +43,7 @@ const TraceLevel = logrus.TraceLevel type Entry = logrus.Entry func FieldsFromContext(ctx context.Context) *logrus.Entry { - entry := logrus.FieldsFromContext(ctx) + entry := logrus.WithContext(ctx) for _, key := range registeredKeys { if value := ctx.Value(key); value != nil {