mirror of https://bitbucket.org/ausocean/av.git
revid: usage of nil error in logging message
This commit is contained in:
parent
4f4bebae25
commit
a231d57f06
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue