Skip to content

Commit

Permalink
Log the correct error in jti_openconfig (influxdata#4901)
Browse files Browse the repository at this point in the history
  • Loading branch information
glinton authored and Jean-Louis Dupond committed Apr 22, 2019
1 parent de1b16e commit a410156
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 a410156

Please sign in to comment.