rebus-org / Rebus.RabbitMq

:bus: RabbitMQ transport for Rebus
https://mookid.dk/category/rebus
Other
62 stars 44 forks source link

Log spamming with 'queue read' messages #90

Closed mindisk closed 2 years ago

mindisk commented 2 years ago

The current version 7.3.2 introduces log spamming rendering the entire log useless if Rebus logging is enabled.

2021-10-13 12:09:15.0513 DEBUG Thread id: 16 RabbitMqTransport.Receive 0 Waiting for queue read 
2021-10-13 12:09:15.3005 DEBUG Thread id: 36 RabbitMqTransport.Receive 0 Reading from queue was cancelled 
2021-10-13 12:09:15.3041 DEBUG Thread id: 96 RabbitMqTransport.Receive 0 Reading from queue was cancelled 
2021-10-13 12:09:15.5580 DEBUG Thread id: 15 RabbitMqTransport.Receive 0 Waiting for queue read 
2021-10-13 12:09:15.5580 DEBUG Thread id: 15 RabbitMqTransport.Receive 0 Waiting for queue read 
2021-10-13 12:09:15.8040 DEBUG Thread id: 68 RabbitMqTransport.Receive 0 Reading from queue was cancelled 

These log messages are written more than once per second even when there is no traffic. Usually Rebus logging produces useful information about incoming and outgoing messages. However, due to these log messages, the useful messages are drowned.

Can these log messages be excluded?

mookid8000 commented 2 years ago

Yeah, that seems rather silly 🙂 I've released Rebus.RabbitMq 7.3.3 to NuGet.org now with much less logging 😁

mindisk commented 2 years ago

Thanks!