mirror of https://github.com/celery/kombu.git
fix: raise BrokenPipeError (#1231)
Co-authored-by: Steven Joseph <steven@pointzi.com> Co-authored-by: Steven Joseph <steven@stevenjoseph.in>
This commit is contained in:
parent
39584a1940
commit
cad7a88b3f
|
@ -126,6 +126,10 @@ class Message:
|
|||
def ack_log_error(self, logger, errors, multiple=False):
|
||||
try:
|
||||
self.ack(multiple=multiple)
|
||||
except BrokenPipeError as exc:
|
||||
logger.critical("Couldn't ack %r, reason:%r",
|
||||
self.delivery_tag, exc, exc_info=True)
|
||||
raise
|
||||
except errors as exc:
|
||||
logger.critical("Couldn't ack %r, reason:%r",
|
||||
self.delivery_tag, exc, exc_info=True)
|
||||
|
|
Loading…
Reference in New Issue