diff options
Diffstat (limited to 'src/main_client.cpp')
-rw-r--r-- | src/main_client.cpp | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/main_client.cpp b/src/main_client.cpp index fb0c1e3..28c472c 100644 --- a/src/main_client.cpp +++ b/src/main_client.cpp @@ -2,28 +2,14 @@ #include "DetectorModule/DetectorModule.h" #include "Detector/Detector.h" -#include <boost/log/core.hpp> -#include <boost/log/trivial.hpp> -#include <boost/log/expressions.hpp> - #include <iostream> #include <string> -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); -} int main (int argc, char *argv[]){ if(argc < 5){ - BOOST_LOG_TRIVIAL(error) << "Program usage: ./onlineDetectorSimulatorClient <address> <first_port> <num_ports> <packets_per_second>"; + std::cerr << "Program usage: ./onlineDetectorSimulatorClient <address> <first_port> <num_ports> <packets_per_second>"; return 0; } @@ -36,8 +22,6 @@ int main (int argc, char *argv[]){ double timegap = 1./(double)imagesPerSec; unsigned int intervall = timegap*1000*1000; - initLog(); - std::cout << "Sending UDP packages: " << std::endl; auto configPath = std::string { "config.cfg" }; |