summaryrefslogtreecommitdiffstats
path: root/src/Protocol
diff options
context:
space:
mode:
authorx12xx12x <44411062+12xx12@users.noreply.github.com>2023-05-29 16:31:18 +0200
committerGitHub <noreply@github.com>2023-05-29 16:31:18 +0200
commit26b7e5ad9edebfce0cbb51a5ba606bb0b334ad2d (patch)
tree9df629b0cabb165811701afb6a76ea62ada35a63 /src/Protocol
parentAnvil: Refactored to use shared_ptr. (diff)
downloadcuberite-26b7e5ad9edebfce0cbb51a5ba606bb0b334ad2d.tar
cuberite-26b7e5ad9edebfce0cbb51a5ba606bb0b334ad2d.tar.gz
cuberite-26b7e5ad9edebfce0cbb51a5ba606bb0b334ad2d.tar.bz2
cuberite-26b7e5ad9edebfce0cbb51a5ba606bb0b334ad2d.tar.lz
cuberite-26b7e5ad9edebfce0cbb51a5ba606bb0b334ad2d.tar.xz
cuberite-26b7e5ad9edebfce0cbb51a5ba606bb0b334ad2d.tar.zst
cuberite-26b7e5ad9edebfce0cbb51a5ba606bb0b334ad2d.zip
Diffstat (limited to 'src/Protocol')
-rw-r--r--src/Protocol/MojangAPI.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Protocol/MojangAPI.cpp b/src/Protocol/MojangAPI.cpp
index fac6371d1..278e3f773 100644
--- a/src/Protocol/MojangAPI.cpp
+++ b/src/Protocol/MojangAPI.cpp
@@ -564,7 +564,7 @@ void cMojangAPI::QueryNamesToUUIDs(AStringVector & a_NamesToQuery)
AString ParseError;
if (!JsonUtils::ParseString(Response, root, &ParseError) || !root.isArray())
{
- LOGWARNING("%s failed: Cannot parse received data (NameToUUID) to JSON: \"%s\"", __FUNCTION__, ParseError);
+ LOGWARNING("%s failed: Cannot parse received data (NameToUUID) to JSON: \"%s\"", __METHOD_NAME__, ParseError);
LOGD("Response body:\n%s", CreateHexDump(HexDump, Response.data(), Response.size(), 16));
continue;
}
@@ -727,7 +727,7 @@ void cMojangAPI::Update(void)
}
if (!PlayerNames.empty())
{
- LOG("cMojangAPI: Updating name-to-uuid cache for %u names", static_cast<unsigned>(PlayerNames.size()));
+ LOG("%s: Updating name-to-uuid cache for %u names", __METHOD_NAME__, static_cast<unsigned>(PlayerNames.size()));
QueryNamesToUUIDs(PlayerNames);
}
@@ -745,7 +745,7 @@ void cMojangAPI::Update(void)
}
if (!ProfileUUIDs.empty())
{
- LOG("cMojangAPI: Updating uuid-to-profile cache for %u uuids", static_cast<unsigned>(ProfileUUIDs.size()));
+ LOG("%s: Updating uuid-to-profile cache for %u uuids", __METHOD_NAME__, static_cast<unsigned>(ProfileUUIDs.size()));
for (const auto & UUID : ProfileUUIDs)
{
QueryUUIDToProfile(UUID);