1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-06-23 06:25:24 +00:00

More detailed logging

Add source IP adress to startup and source exit logging, see #2016
Add mountpoint to some log lines, see #1388


svn path=/icecast/trunk/icecast/; revision=19250
This commit is contained in:
ePirat 2014-10-23 20:41:38 +00:00
parent 634ab4ffc2
commit 461a537561
2 changed files with 5 additions and 4 deletions

View File

@ -1036,7 +1036,8 @@ int connection_check_pass (http_parser_t *parser, const char *user, const char *
/* only called for native icecast source clients */
static void _handle_source_request (client_t *client, const char *uri)
{
LOG_INFO("Source logging in at mountpoint \"%s\"", uri);
LOG_INFO("Source logging in at mountpoint \"%s\" from %s",
uri, client->con->ip);
if (uri[0] != '/')
{

View File

@ -792,7 +792,7 @@ void source_main (source_t *source)
avl_delete(source->pending_tree, (void *)client, _free_client);
LOG_INFO("Client deleted, exceeding maximum listeners for this "
"mountpoint.");
"mountpoint (%s).", source->mount);
continue;
}
@ -800,7 +800,7 @@ void source_main (source_t *source)
avl_insert(source->client_tree, client_node->key);
source->listeners++;
LOG_DEBUG("Client added");
LOG_DEBUG("Client added for mountpoint (%s)", source->mount);
stats_event_inc(source->mount, "connections");
client_node = avl_get_next(client_node);
@ -869,7 +869,7 @@ static void source_shutdown (source_t *source)
mount_proxy *mountinfo;
source->running = 0;
LOG_INFO("Source \"%s\" exiting", source->mount);
LOG_INFO("Source from %s at \"%s\" exiting", source->con->ip, source->mount);
mountinfo = config_find_mount (config_get_config(), source->mount, MOUNT_TYPE_NORMAL);
if (mountinfo)