Provider Auth: use base logger if available (#26138)
This commit is contained in:
parent
6ecf041d9a
commit
31bb62148d
14 changed files with 45 additions and 33 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue