Skip to content

Commit 6803e34

Browse files
jukkarnashif
authored andcommitted
net: prometheus: collector: Add more debugging info
Print also metric name together with type when registering. Signed-off-by: Jukka Rissanen <[email protected]>
1 parent 7e881d2 commit 6803e34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/net/lib/prometheus/collector.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ int prometheus_collector_register_metric(struct prometheus_collector *collector,
3030
return -EINVAL;
3131
}
3232

33-
LOG_DBG("Registering metric type=%d", metric->type);
33+
LOG_DBG("Registering metric type=%d name=\"%s\"", metric->type, metric->name);
3434

3535
k_mutex_lock(&collector->lock, K_FOREVER);
3636

0 commit comments

Comments
 (0)