Log the correct error in jti_openconfig (#4901)

This commit is contained in:
Greg 2018-10-30 15:05:18 -06:00 committed by GitHub
parent 9fcd279b7e
commit 563b6766ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -394,7 +394,7 @@ func (m *OpenConfigTelemetry) Start(acc telegraf.Accumulator) error {
&authentication.LoginRequest{UserName: m.Username,
Password: m.Password, ClientId: m.ClientID})
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
}