]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
Fix error/warning messages to contain more information
authorDagobert Michelsen <dam@opencsw.org>
Tue, 25 Feb 2020 15:11:55 +0000 (16:11 +0100)
committerDagobert Michelsen <dam@opencsw.org>
Tue, 25 Feb 2020 15:11:55 +0000 (16:11 +0100)
src/daemon/plugin.c

index 52cb0a4b7174b5344fa8a31c3082f11a9a17c6e9..42b124f5973384a6e143e183023e0fa8f8694925 100644 (file)
@@ -2122,7 +2122,8 @@ static int plugin_dispatch_values_internal(value_list_t *vl) {
   assert(0 == strcmp(ds->type, vl->type));
 #else
   if (0 != strcmp(ds->type, vl->type))
-    WARNING("plugin_dispatch_values: (ds->type = %s) != (vl->type = %s)",
+    WARNING("plugin_dispatch_values: <%s/%s-%s> (ds->type = %s) != (vl->type = %s)",
+            vl->host, vl->plugin, vl->plugin_instance,
             ds->type, vl->type);
 #endif
 
@@ -2130,9 +2131,11 @@ static int plugin_dispatch_values_internal(value_list_t *vl) {
   assert(ds->ds_num == vl->values_len);
 #else
   if (ds->ds_num != vl->values_len) {
-    ERROR("plugin_dispatch_values: ds->type = %s: "
+    ERROR("plugin_dispatch_values: <%s/%s-%s/%s-%s> ds->type = %s: "
           "(ds->ds_num = %" PRIsz ") != "
           "(vl->values_len = %" PRIsz ")",
+          vl->host, vl->plugin, vl->plugin_instance,
+          vl->type, vl->type_instance,
           ds->type, ds->ds_num, vl->values_len);
     return -1;
   }