Skip to content

Commit

Permalink
Increases log level and avoid using to_string() on possible 'unsuppor…
Browse files Browse the repository at this point in the history
…ted' elliptic_curve_type or cipher_suite_type value.
  • Loading branch information
s-vincent committed Aug 11, 2017
1 parent a027dea commit fd278ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/fscp/src/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1607,7 +1607,7 @@ namespace fscp
if ((calg == cipher_suite_type::unsupported) || (ec == elliptic_curve_type::unsupported))
{
// No suitable cipher and/or elliptic curve is available.
m_logger(log_level::trace) << "Received a SESSION_REQUEST from " << sender << " but can't agree on the cipher suite to use (Cipher algorithm: " << calg << ". Elliptic curve: " << ec << "). Ignoring";
m_logger(log_level::warning) << "Received a SESSION_REQUEST from " << sender << " but can't agree on the cipher suite to use. Ignoring.";

return;
}
Expand Down

0 comments on commit fd278ef

Please sign in to comment.