summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authortjp <tjp@ctrl-c.club>2023-11-13 07:27:56 -0700
committertjp <tjp@ctrl-c.club>2023-11-13 07:27:56 -0700
commitaa9bca810912f102a13a674ee30bf97f5667f662 (patch)
tree793c215fee17cdf5c728af47ff8510a02aad874e /internal
parent629e6a0e0c3a24f35888036f957ee3a631e62816 (diff)
lint and bug fixes
Diffstat (limited to 'internal')
-rw-r--r--internal/server.go9
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,