From: Steinar H. Gunderson Date: Mon, 15 Apr 2013 23:08:01 +0000 (+0200) Subject: Identify UDPInput error messages by the stream, too. X-Git-Tag: 1.0.0~99 X-Git-Url: https://git.sesse.net/?p=cubemap;a=commitdiff_plain;h=0d72f384a1de672824298262ba5c427ec0aee2d6;ds=sidebyside Identify UDPInput error messages by the stream, too. --- 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; }