Commit 4d079ba4 authored by Jack Moffitt's avatar Jack Moffitt

Make it log to a file when the source gets disconnected

svn path=/trunk/icecast/; revision=2967
parent b7a114a1
...@@ -23,9 +23,13 @@ ...@@ -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) ...@@ -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;
} }
......
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