Add a acknowledgement channel to Tutorial 3...

- ...to measure performance of the serialization libraries.
  - Rename `--log-color-format` cmd option to `--log-color`.
This commit is contained in:
Alexey Rybalchenko 2015-12-02 16:24:47 +01:00 committed by Florian Uhlig
parent d254efb91f
commit 9a0a8c7516
3 changed files with 10 additions and 25 deletions

View File

@ -15,24 +15,7 @@
#include "FairMQParser.h" #include "FairMQParser.h"
#include "FairMQLogger.h" #include "FairMQLogger.h"
#include <boost/property_tree/xml_parser.hpp> #include <boost/property_tree/xml_parser.hpp>
// WARNING : pragma commands to hide boost (1.54.0) warning
// TODO : remove these pragma commands when boost will fix this issue in future release
#if defined(__clang__)
_Pragma("clang diagnostic push")
_Pragma("clang diagnostic ignored \"-Wshadow\"")
#include <boost/property_tree/json_parser.hpp> #include <boost/property_tree/json_parser.hpp>
_Pragma("clang diagnostic pop")
#elif defined(__GNUC__) || defined(__GNUG__)
_Pragma("GCC diagnostic push")
_Pragma("GCC diagnostic ignored \"-Wshadow\"")
#include <boost/property_tree/json_parser.hpp>
_Pragma("GCC diagnostic pop")
#endif
using namespace std; using namespace std;

View File

@ -61,9 +61,11 @@ int FairMQProgOptions::ParseAll(const int argc, char** argv, bool allowUnregiste
// set log level before printing (default is 0 = DEBUG level) // set log level before printing (default is 0 = DEBUG level)
std::string verbose = GetValue<std::string>("verbose"); std::string verbose = GetValue<std::string>("verbose");
bool color_format=GetValue<bool>("log-color-format"); bool color = GetValue<bool>("log-color");
if(!color_format) if (!color)
{
reinit_logger(false); reinit_logger(false);
}
//SET_LOG_LEVEL(DEBUG); //SET_LOG_LEVEL(DEBUG);
if (fSeverityMap.count(verbose)) if (fSeverityMap.count(verbose))
{ {

View File

@ -42,7 +42,7 @@ FairProgOptions::FairProgOptions() :
" STATE \n" " STATE \n"
" NOLOG" " NOLOG"
) )
("log-color-format", po::value<bool>()->default_value(true), "logger color format : true or false") ("log-color", po::value<bool>()->default_value(true), "logger color: true or false")
; ;
fSeverityMap["TRACE"] = fairmq::severity_level::TRACE; fSeverityMap["TRACE"] = fairmq::severity_level::TRACE;