diff options
| author | tjpcc <tjp@ctrl-c.club> | 2023-09-08 14:54:55 -0600 |
|---|---|---|
| committer | tjpcc <tjp@ctrl-c.club> | 2023-09-08 14:54:55 -0600 |
| commit | 25e0c48d6d85d34d44f1e5fc418392d07b3d1cfe (patch) | |
| tree | f88af97033ce6537a8753c1b1a562f9bef20d6f1 /config.go | |
| parent | 60f140913b593f0a63a4558ad54184d12a4c5f54 (diff) | |
linter fixes
Diffstat (limited to 'config.go')
| -rw-r--r-- | config.go | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -57,10 +57,11 @@ func dropPrivileges() (bool, error) { func serverContext() (context.Context, logging.Logger, logging.Logger, logging.Logger, logging.Logger) { debug, info, warn, err := logging.DefaultLoggers() ctx := signals(context.Background()) - ctx = context.WithValue(ctx, "debuglog", debug) - ctx = context.WithValue(ctx, "infolog", info) - ctx = context.WithValue(ctx, "warnlog", warn) - ctx = context.WithValue(ctx, "errorlog", err) + ctx = context.WithValue(ctx, "debuglog", debug) //nolint:staticcheck + ctx = context.WithValue(ctx, "infolog", info) //nolint:staticcheck + ctx = context.WithValue(ctx, "warnlog", warn) //nolint:staticcheck + ctx = context.WithValue(ctx, "errorlog", err) //nolint:staticcheck + return ctx, debug, info, warn, err } |
