mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-17 10:31:46 +00:00
convert log severities use to lowercase and remove use of MQLOG
This commit is contained in:
@@ -32,7 +32,7 @@ bool FairMQExample6Broadcaster::ConditionalRun()
|
||||
// Should only be used for small data because of the cost of an additional copy
|
||||
FairMQMessagePtr msg(NewSimpleMessage("OK"));
|
||||
|
||||
LOG(INFO) << "Sending OK";
|
||||
LOG(info) << "Sending OK";
|
||||
|
||||
Send(msg, "broadcast");
|
||||
|
||||
|
@@ -50,7 +50,7 @@ void FairMQExample6Sampler::Run()
|
||||
|
||||
if (Receive(msg, "broadcast") > 0)
|
||||
{
|
||||
LOG(INFO) << "Received broadcast: \"" << string(static_cast<char*>(msg->GetData()), msg->GetSize()) << "\"";
|
||||
LOG(info) << "Received broadcast: \"" << string(static_cast<char*>(msg->GetData()), msg->GetSize()) << "\"";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,11 +62,11 @@ void FairMQExample6Sampler::Run()
|
||||
|
||||
if (Send(msg, "data") > 0)
|
||||
{
|
||||
LOG(INFO) << "Sent \"" << fText << "\"";
|
||||
LOG(info) << "Sent \"" << fText << "\"";
|
||||
|
||||
if (fMaxIterations > 0 && ++fNumIterations >= fMaxIterations)
|
||||
{
|
||||
LOG(INFO) << "Configured maximum number of iterations reached. Leaving RUNNING state.";
|
||||
LOG(info) << "Configured maximum number of iterations reached. Leaving RUNNING state.";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@@ -37,7 +37,7 @@ void FairMQExample6Sink::InitTask()
|
||||
|
||||
bool FairMQExample6Sink::HandleBroadcast(FairMQMessagePtr& msg, int /*index*/)
|
||||
{
|
||||
LOG(INFO) << "Received broadcast: \"" << string(static_cast<char*>(msg->GetData()), msg->GetSize()) << "\"";
|
||||
LOG(info) << "Received broadcast: \"" << string(static_cast<char*>(msg->GetData()), msg->GetSize()) << "\"";
|
||||
fReceivedBroadcast = true;
|
||||
|
||||
return CheckIterations();
|
||||
@@ -45,7 +45,7 @@ bool FairMQExample6Sink::HandleBroadcast(FairMQMessagePtr& msg, int /*index*/)
|
||||
|
||||
bool FairMQExample6Sink::HandleData(FairMQMessagePtr& msg, int /*index*/)
|
||||
{
|
||||
LOG(INFO) << "Received message: \"" << string(static_cast<char*>(msg->GetData()), msg->GetSize()) << "\"";
|
||||
LOG(info) << "Received message: \"" << string(static_cast<char*>(msg->GetData()), msg->GetSize()) << "\"";
|
||||
fReceivedData = true;
|
||||
|
||||
return CheckIterations();
|
||||
@@ -57,7 +57,7 @@ bool FairMQExample6Sink::CheckIterations()
|
||||
{
|
||||
if (fReceivedData && fReceivedBroadcast && ++fNumIterations >= fMaxIterations)
|
||||
{
|
||||
LOG(INFO) << "Configured maximum number of iterations reached & Received messages from both sources. Leaving RUNNING state.";
|
||||
LOG(info) << "Configured maximum number of iterations reached & Received messages from both sources. Leaving RUNNING state.";
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user