Skip to content

Commit

Permalink
Log the correct error in jti_openconfig (#4901)
Browse files Browse the repository at this point in the history
  • Loading branch information
glinton authored Oct 30, 2018
1 parent 9fcd279 commit 563b676
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 563b676

Please sign in to comment.