2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-11-27 23:12:06 +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

View File

@@ -2,6 +2,7 @@
#include "ObjLoading.h"
#include "Utils/FileToZlibWrapper.h"
#include "Utils/Logging/Log.h"
#include <algorithm>
#include <cassert>
@@ -215,7 +216,7 @@ namespace
if (m_unz_file == nullptr)
{
std::cerr << std::format("Could not open IWD \"{}\"\n", m_path);
con::error("Could not open IWD \"{}\"", m_path);
return false;
}
@@ -239,7 +240,7 @@ namespace
ret = unzGoToNextFile(m_unz_file);
}
std::cout << std::format("Loaded IWD \"{}\" with {} entries\n", m_path, m_entry_map.size());
con::info("Loaded IWD \"{}\" with {} entries", m_path, m_entry_map.size());
return true;
}
@@ -261,7 +262,7 @@ namespace
assert(!m_has_open_file);
if (m_has_open_file)
{
std::cerr << "Trying to open new IWD file while last one was not yet closed.\n";
con::error("Trying to open new IWD file while last one was not yet closed.");
return SearchPathOpenFile();
}