RabbitMqBundle icon indicating copy to clipboard operation
RabbitMqBundle copied to clipboard

Consumer disconnect event

Open kukukk opened this issue 3 years ago • 0 comments

When RabbitMQ is stopped while the consumer is running, I get the following log in stderr/stdout:

In StreamIO.php line 266:
               
  Broken pipe  
               

In StreamIO.php line 251:
                                                               
  fwrite(): Send of 12 bytes failed with errno=32 Broken pipe  
                                                               

rabbitmq:consumer [-m|--messages [MESSAGES]] [-r|--route [ROUTE]] [-l|--memory-limit [MEMORY-LIMIT]] [-d|--debug] [-w|--without-signals] [--] <name>

Is it possible to somehow catch the disconnect event to customise the log? I would also be interested in catching the connection error event (when RabbitMQ is not accessible) to customise the log.

kukukk avatar Sep 06 '22 12:09 kukukk