corvus-ch / rabbitmq-cli-consumer

Consume RabbitMQ messages into any cli program
MIT License
236 stars 36 forks source link

Add timeout logs #93

Closed simon-watiau closed 11 months ago

simon-watiau commented 11 months ago

Change logs around the command from

2023/08/03 17:25:42 Processing message...
2023/08/03 17:31:13 Processed !

to

2023/08/03 17:25:42 Processing message...
2023/08/03 17:30:42 Command still running after 5m
2023/08/03 17:31:12 Command still running after 5m30s
2023/08/03 17:31:13 Processed (5m31s) !

After 5 minutes of runtime, the time the command has been running for is output every 30s until it succeeds or run in the ACK timeout