From d0740d8f8c67ee14a9349b4dcb313c87f18245d8 Mon Sep 17 00:00:00 2001 From: Julien Kauffmann Date: Mon, 31 Dec 2018 17:23:26 -0500 Subject: [PATCH] Better log message for session requests --- libs/fscp/src/server.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/fscp/src/server.cpp b/libs/fscp/src/server.cpp index 622ce4c3..1ca2357a 100644 --- a/libs/fscp/src/server.cpp +++ b/libs/fscp/src/server.cpp @@ -1605,11 +1605,12 @@ namespace fscp const auto next_session_number = p_session.next_session_number(); const auto local_host_identifier = p_session.local_host_identifier(); - m_logger(log_level::trace) << "Sending session request message to " << target << " (next_session_number: " << next_session_number << ", local_host_identifier: " << local_host_identifier << ")"; size_t size = 0; if (!!identity.signature_key()) { + m_logger(log_level::trace) << "Sending session request message to " << target << " (next_session_number: " << next_session_number << ", local_host_identifier: " << local_host_identifier << ", asymmetric signature)"; + size = session_request_message::write( buffer_cast(send_buffer), buffer_size(send_buffer), @@ -1622,6 +1623,8 @@ namespace fscp } else { + m_logger(log_level::trace) << "Sending session request message to " << target << " (next_session_number: " << next_session_number << ", local_host_identifier: " << local_host_identifier << ", HMAC signature)"; + size = session_request_message::write( buffer_cast(send_buffer), buffer_size(send_buffer),