From aa9bca810912f102a13a674ee30bf97f5667f662 Mon Sep 17 00:00:00 2001 From: tjp Date: Mon, 13 Nov 2023 07:27:56 -0700 Subject: lint and bug fixes --- internal/server.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'internal') diff --git a/internal/server.go b/internal/server.go index 21d1a7f..46b95ef 100644 --- a/internal/server.go +++ b/internal/server.go @@ -44,10 +44,11 @@ func NewServer( baseLog = log.NewNopLogger() } errlog := level.Error(baseLog) - ctx = context.WithValue(ctx, "debuglog", level.Debug(baseLog)) - ctx = context.WithValue(ctx, "infolog", level.Info(baseLog)) - ctx = context.WithValue(ctx, "warnlog", level.Warn(baseLog)) - ctx = context.WithValue(ctx, "errlog", errlog) + + ctx = context.WithValue(ctx, "debuglog", level.Debug(baseLog)) //nolint:staticcheck + ctx = context.WithValue(ctx, "infolog", level.Info(baseLog)) //nolint:staticcheck + ctx = context.WithValue(ctx, "warnlog", level.Warn(baseLog)) //nolint:staticcheck + ctx = context.WithValue(ctx, "errlog", errlog) //nolint:staticcheck return Server{ Ctx: ctx, -- cgit v1.2.3