add logger to auth manager

This commit is contained in:
Jay
2026-06-04 16:03:10 -04:00
parent dda3bfd5b7
commit df0a968907
2 changed files with 24 additions and 7 deletions
+2 -2
View File
@@ -157,11 +157,11 @@ func NewRequestManager(e *Envoy) *RequestManager {
ctx: ctx,
cancel: cancel,
observer: e.Observer(),
handler: e.Handler(),
}
if m.handler != nil {
if e.Handler() != nil {
comp := component.FromContext(ctx)
m.handler = e.Handler()
m.logger = slog.New(m.handler).With(slog.Any("component", comp))
}