Log fail reason for pair attempt

This commit is contained in:
Yukino Song
2025-01-24 19:13:43 +08:00
parent 6a8b263b06
commit e89354e4a8

View File

@@ -434,6 +434,7 @@ namespace nvhttp {
tree.put("root.<xmlattr>.status_code", 400);
tree.put("root.<xmlattr>.status_message", status_msg);
remove_session(sess); // Security measure, delete the session when something went wrong and force a re-pair
BOOST_LOG(warning) << "Pair attempt failed due to " << status_msg;
}
void