From 0ff2a9a24ed2994427537de51fb06749c73b2644 Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Thu, 25 Jan 2024 18:23:22 +0000 Subject: [PATCH] Update: Improved logging in stats.c --- src/stats.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stats.c b/src/stats.c index 87deddef..ef95969c 100644 --- a/src/stats.c +++ b/src/stats.c @@ -528,7 +528,7 @@ static void process_source_event (stats_event_t *event) snode = (stats_source_t *)calloc(1,sizeof(stats_source_t)); if (snode == NULL) return; - ICECAST_LOG_DEBUG("new source stat %s", event->source); + ICECAST_LOG_DEBUG("new source stat %#H", event->source); snode->source = (char *)strdup(event->source); snode->stats_tree = avl_tree_new(_compare_stats, NULL); if (event->action == STATS_EVENT_HIDDEN) @@ -546,7 +546,7 @@ static void process_source_event (stats_event_t *event) return; /* adding node */ if (event->value) { - ICECAST_LOG_DEBUG("new node %s (%s)", event->name, event->value); + ICECAST_LOG_DEBUG("new node %H on %#H (% H)", event->name, event->source, event->value); node = (stats_node_t *)calloc(1,sizeof(stats_node_t)); node->name = (char *)strdup(event->name); node->value = (char *)strdup(event->value);