Add debug output

This commit is contained in:
Alexey Rybalchenko 2019-07-11 17:42:50 +02:00 committed by Dennis Klein
parent 418d42b060
commit 5c943bbedb
4 changed files with 7 additions and 1 deletions

View File

@ -77,7 +77,10 @@ class FairMQChannel
FairMQChannel& operator=(FairMQChannel&&) = default; FairMQChannel& operator=(FairMQChannel&&) = default;
/// Destructor /// Destructor
virtual ~FairMQChannel() {} virtual ~FairMQChannel()
{
// LOG(debug) << "Destroying channel " << fName;
}
struct ChannelConfigurationError : std::runtime_error { using std::runtime_error::runtime_error; }; struct ChannelConfigurationError : std::runtime_error { using std::runtime_error::runtime_error; };

View File

@ -88,6 +88,7 @@ void FairMQTransportFactoryNN::Reset()
FairMQTransportFactoryNN::~FairMQTransportFactoryNN() FairMQTransportFactoryNN::~FairMQTransportFactoryNN()
{ {
LOG(debug) << "Destroying Shared Memory transport...";
// nn_term(); // nn_term();
// see https://www.freelists.org/post/nanomsg/Getting-rid-of-nn-init-and-nn-term,8 // see https://www.freelists.org/post/nanomsg/Getting-rid-of-nn-init-and-nn-term,8
} }

View File

@ -163,6 +163,7 @@ fair::mq::Transport FairMQTransportFactorySHM::GetType() const
FairMQTransportFactorySHM::~FairMQTransportFactorySHM() FairMQTransportFactorySHM::~FairMQTransportFactorySHM()
{ {
LOG(debug) << "Destroying Shared Memory transport...";
fSendHeartbeats = false; fSendHeartbeats = false;
fHeartbeatThread.join(); fHeartbeatThread.join();

View File

@ -102,6 +102,7 @@ fair::mq::Transport FairMQTransportFactoryZMQ::GetType() const
FairMQTransportFactoryZMQ::~FairMQTransportFactoryZMQ() FairMQTransportFactoryZMQ::~FairMQTransportFactoryZMQ()
{ {
LOG(debug) << "Destroying ZeroMQ transport...";
if (fContext) if (fContext)
{ {
if (zmq_ctx_term(fContext) != 0) if (zmq_ctx_term(fContext) != 0)