We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c05406 commit 66180c8Copy full SHA for 66180c8
pkg/commons/log_config.go
@@ -20,13 +20,13 @@ type LoggerWithContext struct {
20
slog.Handler
21
}
22
23
-func (g *LoggerWithContext) Handle(ctx context.Context, r slog.Record) error {
+func (lc *LoggerWithContext) Handle(ctx context.Context, r slog.Record) error {
24
if workerName, ok := ctx.Value(workerKey).(string); ok {
25
r.AddAttrs(slog.String("worker", workerName))
26
27
28
// Call the parent handler
29
- return g.Handler.Handle(ctx, r)
+ return lc.Handler.Handle(ctx, r)
30
31
32
func ConfigureLog(level slog.Leveler) {
0 commit comments