mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-21 13:53:09 -06:00
Log why we're blacklisting
This commit is contained in:
parent
f3d71c7a72
commit
b4d157c6cf
|
|
@ -275,7 +275,7 @@ func (oq *destinationQueue) backgroundSend() {
|
||||||
// has exceeded a maximum allowable value. Clean up the in-memory
|
// has exceeded a maximum allowable value. Clean up the in-memory
|
||||||
// buffers at this point. The PDU clean-up is already on a defer.
|
// buffers at this point. The PDU clean-up is already on a defer.
|
||||||
oq.cleanPendingInvites()
|
oq.cleanPendingInvites()
|
||||||
log.Infof("Blacklisting %q due to errors", oq.destination)
|
log.WithError(terr).Warnf("Blacklisting %q due to error", oq.destination)
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
// We haven't been told to give up terminally yet but we still have
|
// 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 {
|
if giveUp := oq.statistics.Failure(); giveUp {
|
||||||
// It's been suggested that we should give up because
|
// It's been suggested that we should give up because
|
||||||
// the backoff has exceeded a maximum allowable value.
|
// 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
|
return
|
||||||
}
|
}
|
||||||
} else if sent > 0 {
|
} else if sent > 0 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue