From e6738273450bc05f49512745a3f852bb21fd6afd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pelayo=20Rojas=20=C3=8D=C3=B1igo?= <31128562+Pelayori@users.noreply.github.com> Date: Thu, 9 May 2024 00:31:43 +0200 Subject: [PATCH] Modify message when cache file is not available yet (#8) * Modify message when cache file is not available yet * Update ArkBaseApi.cpp --------- Co-authored-by: Lethalinjectionx --- AsaApi/Core/Private/Ark/ArkBaseApi.cpp | 4 ++-- AsaApi/Core/Private/Tools/Requests.cpp | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/AsaApi/Core/Private/Ark/ArkBaseApi.cpp b/AsaApi/Core/Private/Ark/ArkBaseApi.cpp index b7dd535..6337039 100644 --- a/AsaApi/Core/Private/Ark/ArkBaseApi.cpp +++ b/AsaApi/Core/Private/Ark/ArkBaseApi.cpp @@ -80,7 +80,7 @@ namespace API if (ArkBaseApi::DownloadCacheFiles(downloadFile, localFile)) storedHash = Cache::readFromFile(keyCacheFile); else - Log::GetLog()->error("Failed to download the Cache files."); + Log::GetLog()->warn("Ooops you are early, the cache has not finished cooking yet! Cache files usually take 10 minutes to be ready after an update. If more time has passed please contact developers."); if (fs::exists(localFile)) fs::remove(localFile); @@ -382,4 +382,4 @@ namespace API rcon_connection->SendMessageW(rcon_packet->Id, 0, &reply); } -} // namespace API \ No newline at end of file +} // namespace API diff --git a/AsaApi/Core/Private/Tools/Requests.cpp b/AsaApi/Core/Private/Tools/Requests.cpp index 15bf284..5895e44 100644 --- a/AsaApi/Core/Private/Tools/Requests.cpp +++ b/AsaApi/Core/Private/Tools/Requests.cpp @@ -494,7 +494,6 @@ namespace API } else { - Log::GetLog()->error("Requested file '{}' failed with error: '{}'", url, response.getReason()); Poco::NullOutputStream null; Poco::StreamCopier::copyStream(rs, null); delete session;