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;
/// Destructor
virtual ~FairMQChannel() {}
virtual ~FairMQChannel()
{
// LOG(debug) << "Destroying channel " << fName;
}
struct ChannelConfigurationError : std::runtime_error { using std::runtime_error::runtime_error; };

View File

@ -88,6 +88,7 @@ void FairMQTransportFactoryNN::Reset()
FairMQTransportFactoryNN::~FairMQTransportFactoryNN()
{
LOG(debug) << "Destroying Shared Memory transport...";
// nn_term();
// 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()
{
LOG(debug) << "Destroying Shared Memory transport...";
fSendHeartbeats = false;
fHeartbeatThread.join();

View File

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