Identify UDPInput error messages by the stream, too.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 15 Apr 2013 23:08:01 +0000 (01:08 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 15 Apr 2013 23:08:01 +0000 (01:08 +0200)
udpinput.cpp

index 3a8beff..ed53ede 100644 (file)
@@ -85,7 +85,8 @@ void UDPInput::do_work()
                        int port_num = atoi(port.c_str());
                        sock = create_server_socket(port_num, UDP_SOCKET);
                        if (sock == -1) {
                        int port_num = atoi(port.c_str());
                        sock = create_server_socket(port_num, UDP_SOCKET);
                        if (sock == -1) {
-                               log(WARNING, "UDP socket creation failed. Waiting 0.2 seconds and trying again...");
+                               log(WARNING, "[%s] UDP socket creation failed. Waiting 0.2 seconds and trying again...",
+                                            stream_id.c_str());
                                usleep(200000);
                                continue;
                        }
                                usleep(200000);
                                continue;
                        }