Replaced Boost log with Plog. (#124)

This commit is contained in:
priyadharsun
2020-09-23 06:06:42 +05:30
committed by GitHub
parent 37629471c5
commit 91122474a1
27 changed files with 286 additions and 331 deletions

View File

@@ -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;
}