add debug output to test devices

This commit is contained in:
Alexey Rybalchenko
2017-04-11 16:44:45 +02:00
committed by Mohammad Al-Turany
parent 218af15bbb
commit ee0d2e0c55
2 changed files with 12 additions and 2 deletions

View File

@@ -34,7 +34,11 @@ class Pub : public FairMQDevice
auto msg = FairMQMessagePtr{NewMessage()};
auto d1 = Send(msg, "data");
if (d1 < 0)
if (d1 >= 0)
{
LOG(INFO) << "Sent data: d1 = " << d1;
}
else
{
LOG(ERROR) << "Failed sending data: d1 = " << d1;
}