mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
Make it log to a file when the source gets disconnected
svn path=/trunk/icecast/; revision=2967
This commit is contained in:
parent
b7a114a191
commit
4d079ba4cc
@ -23,9 +23,13 @@
|
|||||||
#include "client.h"
|
#include "client.h"
|
||||||
#include "stats.h"
|
#include "stats.h"
|
||||||
#include "format.h"
|
#include "format.h"
|
||||||
|
#include "logging.h"
|
||||||
|
|
||||||
#include "source.h"
|
#include "source.h"
|
||||||
|
|
||||||
|
#undef CATMODULE
|
||||||
|
#define CATMODULE "source"
|
||||||
|
|
||||||
/* avl tree helper */
|
/* avl tree helper */
|
||||||
static int _compare_clients(void *compare_arg, void *a, void *b);
|
static int _compare_clients(void *compare_arg, void *a, void *b);
|
||||||
static int _remove_client(void *key);
|
static int _remove_client(void *key);
|
||||||
@ -148,6 +152,7 @@ void *source_main(void *arg)
|
|||||||
|
|
||||||
if (bytes <= 0) {
|
if (bytes <= 0) {
|
||||||
printf("DEBUG: got 0 bytes reading data, the source must have disconnected...\n");
|
printf("DEBUG: got 0 bytes reading data, the source must have disconnected...\n");
|
||||||
|
INFO0("Disconnecting lame source...");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user