mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-02-02 15:07:36 -05:00
Update: Improved logging in stats.c
This commit is contained in:
parent
43e28370c8
commit
0ff2a9a24e
@ -528,7 +528,7 @@ static void process_source_event (stats_event_t *event)
|
|||||||
snode = (stats_source_t *)calloc(1,sizeof(stats_source_t));
|
snode = (stats_source_t *)calloc(1,sizeof(stats_source_t));
|
||||||
if (snode == NULL)
|
if (snode == NULL)
|
||||||
return;
|
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->source = (char *)strdup(event->source);
|
||||||
snode->stats_tree = avl_tree_new(_compare_stats, NULL);
|
snode->stats_tree = avl_tree_new(_compare_stats, NULL);
|
||||||
if (event->action == STATS_EVENT_HIDDEN)
|
if (event->action == STATS_EVENT_HIDDEN)
|
||||||
@ -546,7 +546,7 @@ static void process_source_event (stats_event_t *event)
|
|||||||
return;
|
return;
|
||||||
/* adding node */
|
/* adding node */
|
||||||
if (event->value) {
|
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 = (stats_node_t *)calloc(1,sizeof(stats_node_t));
|
||||||
node->name = (char *)strdup(event->name);
|
node->name = (char *)strdup(event->name);
|
||||||
node->value = (char *)strdup(event->value);
|
node->value = (char *)strdup(event->value);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user