place attribute on handler
This commit is contained in:
+2
-2
@@ -355,12 +355,12 @@ func newEnvoy(
|
|||||||
ctx: ctx,
|
ctx: ctx,
|
||||||
cancel: cancel,
|
cancel: cancel,
|
||||||
observer: observer,
|
observer: observer,
|
||||||
handler: handler,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if handler != nil {
|
if handler != nil {
|
||||||
comp := component.FromContext(ctx)
|
comp := component.FromContext(ctx)
|
||||||
e.logger = slog.New(handler).With(slog.Any("component", comp)).With("peer", url)
|
e.handler = handler.WithAttrs([]slog.Attr{slog.String("peer", url)})
|
||||||
|
e.logger = slog.New(e.handler).With(slog.Any("component", comp))
|
||||||
}
|
}
|
||||||
|
|
||||||
e.wg.Add(2)
|
e.wg.Add(2)
|
||||||
|
|||||||
Reference in New Issue
Block a user