From: Florian Forster Date: Fri, 19 May 2017 06:39:45 +0000 (+0200) Subject: src/daemon/utils_cache.c: Add debug message for lookup of missing metrics. X-Git-Tag: collectd-5.7.2~3 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5a011cfd81d5ef3876d4ecb43b6bbffd151f1b03;p=collectd.git src/daemon/utils_cache.c: Add debug message for lookup of missing metrics. Issue: #1234 --- diff --git a/src/daemon/utils_cache.c b/src/daemon/utils_cache.c index 3386df9a..aa8ce9ef 100644 --- a/src/daemon/utils_cache.c +++ b/src/daemon/utils_cache.c @@ -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;