revid: usage of nil error in logging message

This commit is contained in:
saxon 2018-11-22 10:21:25 +10:30
parent 4f4bebae25
commit a231d57f06
1 changed files with 4 additions and 2 deletions

View File

@ -359,10 +359,12 @@ loop:
}
if err != nil && chunk.Len() > 11 {
r.config.Logger.Log(smartlogger.Debug, pkg+"send failed, trying again")
r.config.Logger.Log(smartlogger.Error, pkg+"first send failed", "error", err.Error())
// Try and send again
err = r.destination.send()
if err != nil {
r.config.Logger.Log(smartlogger.Error, pkg+"destination send error", "error", err.Error())
}
// if there's still an error we try and reconnect, unless we're stopping
for err != nil {