mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
Feature: Log HTTP method used to start a source
This commit is contained in:
parent
7aaf0c0e86
commit
0467ef5657
@ -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",
|
||||
client->uri,
|
||||
((method) ? "\"" : "<"), ((method) ? method : "unknown"), ((method) ? "\"" : "<"),
|
||||
client->con->ip, client->role);
|
||||
|
||||
if (client->uri[0] != '/') {
|
||||
ICECAST_LOG_WARN("source mountpoint not starting with /");
|
||||
|
Loading…
Reference in New Issue
Block a user