Commit 0467ef56 authored by Philipp Schafft's avatar Philipp Schafft 🦁

Feature: Log HTTP method used to start a source

parent 7aaf0c0e
......@@ -880,8 +880,12 @@ static inline void source_startup(client_t *client)
/* only called for native icecast source clients */
static void _handle_source_request(client_t *client)
ICECAST_LOG_INFO("Source logging in at mountpoint \"%s\" from %s as role %s",
client->uri, client->con->ip, client->role);
const char *method = httpp_getvar(client->parser, HTTPP_VAR_REQ_TYPE);
ICECAST_LOG_INFO("Source logging in at mountpoint \"%s\" using %s%H%s from %s as role %s",
((method) ? "\"" : "<"), ((method) ? method : "unknown"), ((method) ? "\"" : "<"),
client->con->ip, client->role);
if (client->uri[0] != '/') {
ICECAST_LOG_WARN("source mountpoint not starting with /");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment