diff options
Diffstat (limited to 'internal')
-rw-r--r-- | internal/server.go | 9 |
1 files changed, 5 insertions, 4 deletions
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, |