Temp: printf k directly to stdout (both paths) so it always shows
Build (Windows x64) / build (push) Canceled after 0s
Build (Windows x64) / linux-build (push) Canceled after 0s

This commit is contained in:
devbox
2026-08-15 14:46:04 +10:00
parent 53c5e65dd4
commit aa308b808f
@@ -27,6 +27,7 @@
#include "SslContext.h" #include "SslContext.h"
#include "Timezone.h" #include "Timezone.h"
#include "Util.h" #include "Util.h"
#include <cstdio>
#include <rapidjson/document.h> #include <rapidjson/document.h>
namespace Battlenet::Services namespace Battlenet::Services
@@ -285,6 +286,7 @@ uint32 Authentication::HandleVerifyWebCredentials(std::string_view webCredential
logonResult.set_session_key(k.data(), 64); logonResult.set_session_key(k.data(), 64);
TC_LOG_INFO("bnet", "AUTHDBG logon k={}", ByteArrayToHexStr(k)); TC_LOG_INFO("bnet", "AUTHDBG logon k={}", ByteArrayToHexStr(k));
TC_LOG_ERROR("bnet", "AUTHDBG_LOGON_K {}", ByteArrayToHexStr(k)); TC_LOG_ERROR("bnet", "AUTHDBG_LOGON_K {}", ByteArrayToHexStr(k));
printf("AUTHDBG_LOGON_K %s\n", ByteArrayToHexStr(k).c_str()); fflush(stdout);
Service<authentication::v1::AuthenticationListener>(session).OnLogonComplete(&logonResult); Service<authentication::v1::AuthenticationListener>(session).OnLogonComplete(&logonResult);
}); });
@@ -395,6 +397,7 @@ uint32 Authentication::HandleVerifyAuthToken(std::string_view authToken, std::fu
std::array<uint8, 64> k = Trinity::Crypto::GetRandomBytes<64>(); std::array<uint8, 64> k = Trinity::Crypto::GetRandomBytes<64>();
logonRecord->set_session_key(k.data(), 64); logonRecord->set_session_key(k.data(), 64);
printf("AUTHDBG_LOGON_K_GENERATE %s\n", ByteArrayToHexStr(k).c_str()); fflush(stdout);
Service<authentication::v2::client::AuthenticationListener>(session).OnLogonComplete(&logonResult); Service<authentication::v2::client::AuthenticationListener>(session).OnLogonComplete(&logonResult);
}); });