@@ -50,9 +50,9 @@ namespace dunedaq {
5050 */
5151ERS_DECLARE_ISSUE (ipm,
5252 ZmqOperationError,
53- " An exception occured while calling " << operation << " on the ZMQ " << direction << " socket: "
54- << what << " (connection_string: " << connection_string << " )" ,
55- ((std::string)operation)((std::string)direction)((const char *)what)(
53+ connection_name << " : An exception occured while calling " << operation << " on the ZMQ " << direction
54+ << " socket: " << what << " (connection_string: " << connection_string << " )" ,
55+ ((std::string)connection_name)((std::string) operation)((std::string)direction)((const char *)what)(
5656 (std::string)connection_string)) // NOLINT
5757 // / @endcond LCOV_EXCL_STOP
5858
@@ -63,11 +63,12 @@ ERS_DECLARE_ISSUE(ipm,
6363 * @param topic Send topic
6464 * @cond Doxygen doesn't like ERS macros LCOV_EXCL_START
6565 */
66- ERS_DECLARE_ISSUE (ipm,
67- ZmqSendError,
68- " An exception occurred while sending " << N << " bytes to " << topic << " : " << what,
69- ((const char *)what)((int )N)((std::string)topic)) // NOLINT
70- // / @endcond LCOV_EXCL_STOP
66+ ERS_DECLARE_ISSUE (
67+ ipm,
68+ ZmqSendError,
69+ connection_name << " : An exception occurred while sending " << N << " bytes to " << topic << " : " << what,
70+ ((std::string)connection_name)((const char *)what)((int )N)((std::string)topic)) // NOLINT
71+ // / @endcond LCOV_EXCL_STOP
7172
7273/* *
7374 * @brief An ERS Error indicating that an exception was thrown from ZMQ while receiving
@@ -77,9 +78,9 @@ ERS_DECLARE_ISSUE(ipm,
7778 */
7879ERS_DECLARE_ISSUE (ipm,
7980 ZmqReceiveError,
80- " An exception occured while receiving " << which << " : " << what,
81- ((const char *)what)((const char *)which)) // NOLINT
82- // / @endcond LCOV_EXCL_STOP
81+ connection_name << " : An exception occured while receiving " << which << " : " << what,
82+ ((std::string)connection_name)(( const char *)what)((const char *)which)) // NOLINT
83+ // / @endcond LCOV_EXCL_STOP
8384
8485/* *
8586 * @brief An ERS Error indicating that an exception was thrown from ZMQ during a subscribe
@@ -89,8 +90,8 @@ ERS_DECLARE_ISSUE(ipm,
8990 */
9091ERS_DECLARE_ISSUE (ipm,
9192 ZmqSubscribeError,
92- " An execption occured while subscribing to " << topic << " : " << what,
93- ((const char *)what)((std::string)topic)) // NOLINT
93+ connection_name << " : An execption occured while subscribing to " << topic << " : " << what,
94+ ((std::string)connection_name)(( const char *)what)((std::string)topic)) // NOLINT
9495// / @endcond LCOV_EXCL_STOP
9596
9697/* *
@@ -101,8 +102,8 @@ ERS_DECLARE_ISSUE(ipm,
101102 */
102103ERS_DECLARE_ISSUE (ipm,
103104 ZmqUnsubscribeError,
104- " An execption occured while unsubscribing from " << topic << " : " << what,
105- ((const char *)what)((std::string)topic)) // NOLINT
105+ connection_name << " : An execption occured while unsubscribing from " << topic << " : " << what,
106+ ((std::string)connection_name)(( const char *)what)((std::string)topic)) // NOLINT
106107// / @endcond LCOV_EXCL_STOP
107108
108109namespace ipm {
@@ -152,10 +153,11 @@ class ZmqContext
152153 set_context_maxsockets (s_minimum_sockets);
153154 }
154155 }
155- ~ZmqContext () {
156- TLOG_DEBUG (TLVL_ZMQCONTEXT) << " Closing ZMQ Context" ;
157- m_context.close ();
158- TLOG_DEBUG (TLVL_ZMQCONTEXT) << " ZMQ Context closed" ;
156+ ~ZmqContext ()
157+ {
158+ TLOG_DEBUG (TLVL_ZMQCONTEXT) << " Closing ZMQ Context" ;
159+ m_context.close ();
160+ TLOG_DEBUG (TLVL_ZMQCONTEXT) << " ZMQ Context closed" ;
159161 }
160162 zmq::context_t m_context;
161163 static constexpr int s_minimum_sockets = 16636 ;
0 commit comments