From 5cdb425d6843c100189611c2edb37b03efc1dc5a Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Tue, 14 Aug 2018 21:58:29 +0200 Subject: Make it compatible with CentOS 7.5 --- src/main_server.cpp | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) (limited to 'src/main_server.cpp') diff --git a/src/main_server.cpp b/src/main_server.cpp index b2f9425..7c6cee4 100644 --- a/src/main_server.cpp +++ b/src/main_server.cpp @@ -1,25 +1,10 @@ #include "UDPServer/UDPServer.h" #include "ReceiverThreads/ReceiverThreads.h" -#include -#include -#include - #include #include #include -void initLog() { -/* -#ifndef NDEBUG - boost::log::core::get()->set_filter(boost::log::trivial::severity >= boost::log::trivial::debug); -#else - boost::log::core::get()->set_filter(boost::log::trivial::severity >= boost::log::trivial::info); -#endif -*/ - boost::log::core::get()->set_filter(boost::log::trivial::severity >= boost::log::trivial::info); -} - void start(std::function func){ std::thread([func]() { while (true) @@ -31,10 +16,8 @@ void start(std::function func){ int main (int argc, char *argv[]){ - initLog(); - if(argc < 4){ - BOOST_LOG_TRIVIAL(error) << "Program usage: ./onlineDetectorSimulatorServer
"; + std::cerr << "Program usage: ./onlineDetectorSimulatorServer
"; return 0; } @@ -66,12 +49,8 @@ int main (int argc, char *argv[]){ // std::size_t index = *((std::size_t *)buf.data()); // if(index%1000 == 99) printf("%lu\n", index); // -// if(lastIndex != (index-1)) -// BOOST_LOG_TRIVIAL(warning) << "Packet loss or wrong order!"; -// // lastIndex = index; // -// BOOST_LOG_TRIVIAL(debug) << "Server: Received " << bytes << " Bytes with Index " << index; // } return 0; -- cgit v1.2.3