2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-07-04 23:00:04 +00:00

chore: update all logging to use centralized logging component

This commit is contained in:
Jan Laupetin
2025-09-10 19:52:42 +02:00
parent 1bf4033f41
commit 02f20f09b6
161 changed files with 824 additions and 664 deletions
+4 -3
View File
@@ -2,6 +2,7 @@
#include "Loading/IZoneLoaderFactory.h"
#include "Loading/ZoneLoader.h"
#include "Utils/Logging/Log.h"
#include "Utils/ObjFileStream.h"
#include <filesystem>
@@ -18,7 +19,7 @@ std::unique_ptr<Zone> ZoneLoading::LoadZone(const std::string& path)
if (!file.is_open())
{
std::cerr << std::format("Could not open file '{}'.\n", path);
con::error("Could not open file '{}'.", path);
return nullptr;
}
@@ -26,7 +27,7 @@ std::unique_ptr<Zone> ZoneLoading::LoadZone(const std::string& path)
file.read(reinterpret_cast<char*>(&header), sizeof(header));
if (file.gcount() != sizeof(header))
{
std::cerr << std::format("Failed to read zone header from file '{}'.\n", path);
con::error("Failed to read zone header from file '{}'.", path);
return nullptr;
}
@@ -42,7 +43,7 @@ std::unique_ptr<Zone> ZoneLoading::LoadZone(const std::string& path)
if (!zoneLoader)
{
std::cerr << std::format("Could not create factory for zone '{}'.\n", zoneName);
con::error("Could not create factory for zone '{}'.", zoneName);
return nullptr;
}