src/daemon/utils_cache.c: Add debug message for lookup of missing metrics.
authorFlorian Forster <octo@collectd.org>
Fri, 19 May 2017 06:39:45 +0000 (08:39 +0200)
committerFlorian Forster <octo@collectd.org>
Fri, 19 May 2017 06:39:45 +0000 (08:39 +0200)
Issue: #1234

src/daemon/utils_cache.c

index 3386df9..aa8ce9e 100644 (file)
@@ -422,6 +422,9 @@ int uc_get_rate_by_name(const char *name, gauge_t **ret_values,
 
     /* remove missing values from getval */
     if (ce->state == STATE_MISSING) {
+      DEBUG("utils_cache: uc_get_rate_by_name: requested metric \"%s\" is in "
+            "state \"missing\".",
+            name);
       status = -1;
     } else {
       ret_num = ce->values_num;