]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
Change AMQP queue drops from DEBUG to WARNING
authorChris Sibbitt <csibbitt@redhat.com>
Fri, 25 Aug 2023 19:04:16 +0000 (15:04 -0400)
committerMatthias Runge <mrunge@matthias-runge.de>
Sun, 27 Aug 2023 19:02:25 +0000 (21:02 +0200)
Debug messages are only available if collectd is compiled with debug enabled, making it hard to troubleshoot the situation where the amqp queue is being overrun.

src/amqp1.c

index c4f14d12c7066b917a18423872fd2171b7984f34..f194c5e80b4a8528f892ba44a4ac11d36df52095 100644 (file)
@@ -346,7 +346,7 @@ static int encqueue(cd_message_t *cdm,
       DEQ_SIZE(out_messages) >= transport->sendq_limit) {
     cd_message_t *evict;
 
-    DEBUG("amqp1 plugin: dropping oldest message because sendq is full");
+    WARNING("amqp1 plugin: dropping oldest message because sendq is full");
     evict = DEQ_HEAD(out_messages);
     DEQ_REMOVE_HEAD(out_messages);
     cd_message_free(evict);