Provider Auth: use base logger if available (#26138)

This commit is contained in:
andig 2025-12-22 10:22:10 +01:00 • committed by GitHub
parent 6ecf041d9a
commit 31bb62148d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 45 additions and 33 deletions

View file

@ -59,7 +59,7 @@ func NewModbusFromConfig(ctx context.Context, other map[string]any) (Plugin, err
// set non-default connect delay
conn.ConnectDelay(cc.ConnectDelay)
log := contextLogger(ctx, util.NewLogger("modbus"))
log := util.ContextLoggerWithDefault(ctx, util.NewLogger("modbus"))
conn.Logger(log.TRACE)
if err := cc.Register.Error(); err != nil {