@@ -61,20 +61,28 @@ class PerfdataWriterConnection final : public Object
6161 template <typename Buffer>
6262 auto Send (Buffer&& buf)
6363 {
64+ Log (LogDebug, m_LogFacility) << " PerfdataWriterConnection::Send::1" ;
6465 if (m_Stopped) {
66+ Log (LogDebug, m_LogFacility) << " PerfdataWriterConnection::Send::1.1" ;
6567 BOOST_THROW_EXCEPTION (Stopped{});
6668 }
69+ Log (LogDebug, m_LogFacility) << " PerfdataWriterConnection::Send::2" ;
6770
6871 using RetType = decltype (WriteMessage (std::declval<Buffer>(), std::declval<boost::asio::yield_context>()));
6972 std::promise<RetType> promise;
7073
7174 IoEngine::SpawnCoroutine (m_Strand, [&](boost::asio::yield_context yc) {
75+ Log (LogDebug, m_LogFacility) << " PerfdataWriterConnection::Send::3" ;
76+
7277 while (true ) {
7378 try {
79+ Log (LogDebug, m_LogFacility) << " PerfdataWriterConnection::Send::5" ;
7480 EnsureConnected (yc);
81+ Log (LogDebug, m_LogFacility) << " PerfdataWriterConnection::Send::6" ;
7582
7683 if constexpr (std::is_void_v<RetType>) {
7784 WriteMessage (std::forward<Buffer>(buf), yc);
85+ Log (LogDebug, m_LogFacility) << " PerfdataWriterConnection::Send::7" ;
7886 promise.set_value ();
7987 } else {
8088 promise.set_value (WriteMessage (std::forward<Buffer>(buf), yc));
@@ -83,7 +91,9 @@ class PerfdataWriterConnection final : public Object
8391 m_RetryTimeout = InitialRetryWait;
8492 return ;
8593 } catch (const std::exception& ex) {
94+ Log (LogDebug, m_LogFacility) << " PerfdataWriterConnection::Send::8" ;
8695 if (m_Stopped) {
96+ Log (LogDebug, m_LogFacility) << " PerfdataWriterConnection::Send::8.1" ;
8797 promise.set_exception (std::make_exception_ptr (Stopped{}));
8898 return ;
8999 }
@@ -96,8 +106,11 @@ class PerfdataWriterConnection final : public Object
96106 m_Connected = false ;
97107
98108 try {
109+ Log (LogDebug, m_LogFacility) << " PerfdataWriterConnection::Send::9" ;
99110 BackoffWait (yc);
111+ Log (LogDebug, m_LogFacility) << " PerfdataWriterConnection::Send::10" ;
100112 } catch (const std::exception&) {
113+ Log (LogDebug, m_LogFacility) << " PerfdataWriterConnection::Send::11" ;
101114 promise.set_exception (std::make_exception_ptr (Stopped{}));
102115 return ;
103116 }
0 commit comments