#include <string>
#include "acceptor.h"
+#include "log.h"
#include "serverpool.h"
#include "state.pb.h"
#include "udpinput.h"
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;
}