mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-09-29 04:25:55 -04:00
Add log message for succesful streamlist requests
This commit is contained in:
parent
a552c6e667
commit
43658deb37
@ -646,11 +646,13 @@ static int update_from_master(ice_config_t *config)
|
|||||||
free(data);
|
free(data);
|
||||||
|
|
||||||
if (sock_read_line(mastersock, buf, sizeof(buf)) == 0 ||
|
if (sock_read_line(mastersock, buf, sizeof(buf)) == 0 ||
|
||||||
(strncmp (buf, "HTTP/1.0 200", 12) != 0) && (strncmp (buf, "HTTP/1.1 200", 12) != 0))
|
((strncmp (buf, "HTTP/1.0 200", 12) != 0) && (strncmp (buf, "HTTP/1.1 200", 12) != 0)))
|
||||||
{
|
{
|
||||||
sock_close (mastersock);
|
sock_close (mastersock);
|
||||||
ICECAST_LOG_WARN("Master rejected streamlist request");
|
ICECAST_LOG_WARN("Master rejected streamlist request");
|
||||||
break;
|
break;
|
||||||
|
} else {
|
||||||
|
ICECAST_LOG_INFO("Master accepted streamlist request");
|
||||||
}
|
}
|
||||||
|
|
||||||
while (sock_read_line(mastersock, buf, sizeof(buf)))
|
while (sock_read_line(mastersock, buf, sizeof(buf)))
|
||||||
|
Loading…
Reference in New Issue
Block a user