X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=udpinput.cpp;h=081f631c47e114ba42f7ff46699667d8d1d31c5e;hp=fc0779cebdf25be2eb115b92ce3da73f543ec9eb;hb=3ce04a3c410c5836394417b19e70f2a95bc8a5e7;hpb=488f28bf7070f44469a006ed4a9d4c423788d175 diff --git a/udpinput.cpp b/udpinput.cpp index fc0779c..081f631 100644 --- a/udpinput.cpp +++ b/udpinput.cpp @@ -8,6 +8,7 @@ #include #include "acceptor.h" +#include "log.h" #include "serverpool.h" #include "state.pb.h" #include "udpinput.h" @@ -84,7 +85,7 @@ void UDPInput::do_work() int port_num = atoi(port.c_str()); sock = create_server_socket(port_num, UDP_SOCKET); if (sock == -1) { - fprintf(stderr, "WARNING: UDP socket creation failed. Waiting 0.2 seconds and trying again...\n"); + log(WARNING, "UDP socket creation failed. Waiting 0.2 seconds and trying again..."); usleep(200000); continue; }