Human-readable retry_after in logs

This commit is contained in:
Neil Alexander 2020-09-08 10:49:41 +01:00
parent d9a2f834d3
commit 28efaa1ff8
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -30,7 +30,7 @@ type FederationClientError struct {
}
func (e *FederationClientError) Error() string {
return fmt.Sprintf("%s - (retry_after=%d, blacklisted=%v)", e.Err, e.RetryAfter, e.Blacklisted)
return fmt.Sprintf("%s - (retry_after=%s, blacklisted=%v)", e.Err, e.RetryAfter.String(), e.Blacklisted)
}
// FederationSenderInternalAPI is used to query information from the federation sender.