mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-01-11 03:01:49 +00:00
chore: update all logging to use centralized logging component
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include "Image/IwiLoader.h"
|
||||
#include "Image/IwiWriter13.h"
|
||||
#include "ObjWriting.h"
|
||||
#include "Utils/Logging/Log.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
@@ -40,7 +41,7 @@ namespace
|
||||
const auto filePathImage = searchPath.Open(imageFileName);
|
||||
if (!filePathImage.IsOpen())
|
||||
{
|
||||
std::cerr << std::format("Could not find data for image \"{}\"\n", image.name);
|
||||
con::error("Could not find data for image \"{}\"", image.name);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
#include "Dumping/Localize/StringFileDumper.h"
|
||||
#include "Localize/LocalizeCommon.h"
|
||||
#include "Utils/Logging/Log.h"
|
||||
|
||||
#include <format>
|
||||
#include <iostream>
|
||||
@@ -38,7 +39,7 @@ namespace localize
|
||||
}
|
||||
else
|
||||
{
|
||||
std::cerr << std::format("Could not create string file for dumping localized strings of zone '{}'\n", context.m_zone.m_name);
|
||||
con::error("Could not create string file for dumping localized strings of zone '{}'", context.m_zone.m_name);
|
||||
}
|
||||
}
|
||||
} // namespace localize
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#include "RawFileDumperT5.h"
|
||||
|
||||
#include "Utils/Logging/Log.h"
|
||||
#include "Utils/StringUtils.h"
|
||||
|
||||
#include <cassert>
|
||||
@@ -20,7 +21,7 @@ namespace
|
||||
|
||||
if (rawFile->len <= 8)
|
||||
{
|
||||
std::cout << "Invalid len of gsc file \"" << rawFile->name << "\"\n";
|
||||
con::error("Invalid len of gsc file \"{}\"", rawFile->name);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -31,13 +32,13 @@ namespace
|
||||
|
||||
if (inLen > static_cast<unsigned>(rawFile->len - 8) + 1)
|
||||
{
|
||||
std::cout << "Invalid compression of gsc file \"" << rawFile->name << "\": " << inLen << "\n";
|
||||
con::error("Invalid compression of gsc file \"{}\": {}", rawFile->name, inLen);
|
||||
return;
|
||||
}
|
||||
|
||||
if (outLen > GSC_MAX_SIZE)
|
||||
{
|
||||
std::cout << "Invalid size of gsc file \"" << rawFile->name << "\": " << outLen << "\n";
|
||||
con::error("Invalid size of gsc file \"{}\": {}", rawFile->name, outLen);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -70,7 +71,7 @@ namespace
|
||||
|
||||
if (ret < 0)
|
||||
{
|
||||
std::cout << "Inflate failed for dumping gsc file \"" << rawFile->name << "\"\n";
|
||||
con::error("Inflate failed for dumping gsc file \"{}\"", rawFile->name);
|
||||
inflateEnd(&zs);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user