Log why we're blacklisting

This commit is contained in:
Neil Alexander 2020-08-07 17:20:17 +01:00
parent f3d71c7a72
commit b4d157c6cf
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -275,7 +275,7 @@ func (oq *destinationQueue) backgroundSend() {
// has exceeded a maximum allowable value. Clean up the in-memory
// buffers at this point. The PDU clean-up is already on a defer.
oq.cleanPendingInvites()
log.Infof("Blacklisting %q due to errors", oq.destination)
log.WithError(terr).Warnf("Blacklisting %q due to error", oq.destination)
return
} else {
// We haven't been told to give up terminally yet but we still have
@ -303,7 +303,7 @@ func (oq *destinationQueue) backgroundSend() {
if giveUp := oq.statistics.Failure(); giveUp {
// It's been suggested that we should give up because
// the backoff has exceeded a maximum allowable value.
log.Infof("Blacklisting %q due to errors", oq.destination)
log.WithError(ierr).Warnf("Blacklisting %q due to error", oq.destination)
return
}
} else if sent > 0 {