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

@@ -1,5 +1,6 @@
#include "XChunkProcessorInflate.h"
#include "Utils/Logging/Log.h"
#include "XChunkException.h"
#include <format>
@@ -26,7 +27,7 @@ size_t XChunkProcessorInflate::Process(unsigned streamNumber, const uint8_t* inp
ret = inflate(&stream, Z_FULL_FLUSH);
if (ret != Z_STREAM_END)
{
std::cerr << std::format("inflate of stream failed with error code {}: {}\n", streamNumber, ret, stream.msg);
con::error("inflate of stream failed with error code {}: {}", streamNumber, ret, stream.msg);
throw XChunkException(std::format("Zone has invalid or unsupported compression: {}", stream.msg));
}