mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
Replaced Boost log with Plog. (#124)
This commit is contained in:
@@ -74,7 +74,7 @@ namespace usr
|
||||
// The received message must be the challenge response. We need to verify it.
|
||||
if (session.issued_challenge.empty())
|
||||
{
|
||||
LOG_DBG << "No challenge found for the session " << session.uniqueid.substr(0, 10);
|
||||
LOG_DEBUG << "No challenge found for the session " << session.uniqueid.substr(0, 10);
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -107,18 +107,18 @@ namespace usr
|
||||
add_user(session, userpubkey, user_protocol); // Add the user to the global authed user list
|
||||
session.issued_challenge.clear(); // Remove the stored challenge
|
||||
|
||||
LOG_DBG << "User connection " << session.uniqueid.substr(0, 10) << " authenticated. Public key "
|
||||
LOG_DEBUG << "User connection " << session.uniqueid.substr(0, 10) << " authenticated. Public key "
|
||||
<< userpubkeyhex;
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
LOG_DBG << "Duplicate user public key " << session.uniqueid.substr(0, 10);
|
||||
LOG_DEBUG << "Duplicate user public key " << session.uniqueid.substr(0, 10);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
LOG_DBG << "Challenge verification failed " << session.uniqueid.substr(0, 10);
|
||||
LOG_DEBUG << "Challenge verification failed " << session.uniqueid.substr(0, 10);
|
||||
}
|
||||
|
||||
return -1;
|
||||
@@ -185,7 +185,7 @@ namespace usr
|
||||
}
|
||||
else
|
||||
{
|
||||
LOG_DBG << "Invalid user message type: " << msg_type;
|
||||
LOG_DEBUG << "Invalid user message type: " << msg_type;
|
||||
send_input_status(parser, user.session, msg::usrmsg::STATUS_REJECTED, msg::usrmsg::REASON_INVALID_MSG_TYPE, "");
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user