mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 17:41:45 +00:00
add debug output to test devices
This commit is contained in:
committed by
Mohammad Al-Turany
parent
218af15bbb
commit
ee0d2e0c55
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user