Skip to content

Commit

Permalink
Better log message for session requests
Browse files Browse the repository at this point in the history
  • Loading branch information
ereOn committed Dec 31, 2018
1 parent feb3951 commit d0740d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libs/fscp/src/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<uint8_t*>(send_buffer),
buffer_size(send_buffer),
Expand All @@ -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<uint8_t*>(send_buffer),
buffer_size(send_buffer),
Expand Down

0 comments on commit d0740d8

Please sign in to comment.