log: add logs surrounding logout to potentially catch any unwanted logouts or errors

This commit is contained in:
Ian Chua
2026-05-18 15:18:31 +08:00
parent 1447602d43
commit 232fc30db1
3 changed files with 20 additions and 7 deletions

View File

@@ -1465,6 +1465,7 @@ bool OrcaCloudServiceAgent::load_refresh_token(std::string& out_token)
if (payload.rfind("v2:", 0) == 0) {
auto delim = payload.find(':', 3);
if (delim == std::string::npos) {
BOOST_LOG_TRIVIAL(warning) << "payload missing delim ':'.";
integrity_ok = false;
} else {
std::string stored_hmac = payload.substr(3, delim - 3);