Skip to content

Commit f18faaa

Browse files
glintonotherpirate
authored andcommitted
Log the correct error in jti_openconfig (influxdata#4901)
1 parent 2a6dc16 commit f18faaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/inputs/jti_openconfig_telemetry/openconfig_telemetry.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ func (m *OpenConfigTelemetry) Start(acc telegraf.Accumulator) error {
394394
&authentication.LoginRequest{UserName: m.Username,
395395
Password: m.Password, ClientId: m.ClientID})
396396
if loginErr != nil {
397-
log.Printf("E! Could not initiate login check for %s: %v", server, err)
397+
log.Printf("E! Could not initiate login check for %s: %v", server, loginErr)
398398
continue
399399
}
400400

0 commit comments

Comments
 (0)