convert log severities use to lowercase and remove use of MQLOG

This commit is contained in:
Alexey Rybalchenko
2017-12-22 10:40:50 +01:00
parent 6d97b86d37
commit b3292252bf
22 changed files with 44 additions and 44 deletions

View File

@@ -43,7 +43,7 @@ bool FairMQExample8Sampler::ConditionalRun()
{
header.stopFlag = 1;
}
LOG(INFO) << "Sending header with stopFlag: " << header.stopFlag;
LOG(info) << "Sending header with stopFlag: " << header.stopFlag;
FairMQParts parts;
@@ -52,14 +52,14 @@ bool FairMQExample8Sampler::ConditionalRun()
parts.AddPart(NewSimpleMessage(header));
parts.AddPart(NewMessage(1000));
LOG(INFO) << "Sending body of size: " << parts.At(1)->GetSize();
LOG(info) << "Sending body of size: " << parts.At(1)->GetSize();
Send(parts, "data-out");
// Go out of the sending loop if the stopFlag was sent.
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.";
return false;
}

View File

@@ -28,14 +28,14 @@ bool FairMQExample8Sink::HandleData(FairMQParts& parts, int /*index*/)
Ex8Header header;
header.stopFlag = (static_cast<Ex8Header*>(parts.At(0)->GetData()))->stopFlag;
LOG(INFO) << "Received message with " << parts.Size() << " parts";
LOG(info) << "Received message with " << parts.Size() << " parts";
LOG(INFO) << "Received header with stopFlag: " << header.stopFlag;
LOG(INFO) << "Received body of size: " << parts.At(1)->GetSize();
LOG(info) << "Received header with stopFlag: " << header.stopFlag;
LOG(info) << "Received body of size: " << parts.At(1)->GetSize();
if (header.stopFlag == 1)
{
LOG(INFO) << "stopFlag is 1, going IDLE";
LOG(info) << "stopFlag is 1, going IDLE";
return false;
}