From 0d72f384a1de672824298262ba5c427ec0aee2d6 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Tue, 16 Apr 2013 01:08:01 +0200 Subject: [PATCH] Identify UDPInput error messages by the stream, too. --- udpinput.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/udpinput.cpp b/udpinput.cpp index 3a8beff..ed53ede 100644 --- a/udpinput.cpp +++ b/udpinput.cpp @@ -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) { - 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; } -- 2.39.2