RabbitMqBundle
RabbitMqBundle copied to clipboard
Consumer disconnect event
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.