mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
Small adjustments for the new logger.
Both FairMQLogger and FairMQStateMachine use Boost Fusion internaly. Because the state machine needs FUSION_MAX_VECTOR_SIZE 20 defined, same value has to be defined in the logger, otherwise Fusion is not properly compiled.
This commit is contained in:
committed by
Mohammad Al-Turany
parent
5136c88d3a
commit
54e1777c00
@@ -62,14 +62,14 @@ int FairMQProgOptions::ParseAll(const int argc, char** argv, bool allowUnregiste
|
||||
// set log level before printing (default is 0 = DEBUG level)
|
||||
std::string verbose=GetValue<std::string>("verbose");
|
||||
//SET_LOG_LEVEL(DEBUG);
|
||||
if (fSeverity_map.count(verbose))
|
||||
if (fSeverityMap.count(verbose))
|
||||
{
|
||||
set_global_log_level(log_op::operation::GREATER_EQ_THAN,fSeverity_map.at(verbose));
|
||||
set_global_log_level(log_op::operation::GREATER_EQ_THAN,fSeverityMap.at(verbose));
|
||||
}
|
||||
else
|
||||
{
|
||||
LOG(ERROR)<<" verbosity level '"<<verbose<<"' unknown, it will be set to INFO";
|
||||
set_global_log_level(log_op::operation::GREATER_EQ_THAN,fSeverity_map.at("RESULTS"));
|
||||
set_global_log_level(log_op::operation::GREATER_EQ_THAN,fSeverityMap.at("RESULTS"));
|
||||
}
|
||||
|
||||
PrintOptions();
|
||||
|
Reference in New Issue
Block a user