diff --git a/irc/mysql/history.go b/irc/mysql/history.go index c744af1f..0e24cf36 100644 --- a/irc/mysql/history.go +++ b/irc/mysql/history.go @@ -395,7 +395,7 @@ func (mysql *MySQL) deleteCorrespondents(ctx context.Context, threshold int64) { mysql.logError("error deleting correspondents", err) } else { count, err := result.RowsAffected() - if err != nil { + if !mysql.logError("error deleting correspondents", err) { mysql.logger.Debug(fmt.Sprintf("deleted %d correspondents entries", count)) } }