Log the correct error in jti_openconfig (#4901)
This commit is contained in:
parent
9fcd279b7e
commit
563b6766ce
|
@ -394,7 +394,7 @@ func (m *OpenConfigTelemetry) Start(acc telegraf.Accumulator) error {
|
||||||
&authentication.LoginRequest{UserName: m.Username,
|
&authentication.LoginRequest{UserName: m.Username,
|
||||||
Password: m.Password, ClientId: m.ClientID})
|
Password: m.Password, ClientId: m.ClientID})
|
||||||
if loginErr != nil {
|
if loginErr != nil {
|
||||||
log.Printf("E! Could not initiate login check for %s: %v", server, err)
|
log.Printf("E! Could not initiate login check for %s: %v", server, loginErr)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue