mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-01-11 19:21:50 +00:00
chore: update all logging to use centralized logging component
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
#include "RawTemplaterArguments.h"
|
||||
#include "Templating/Templater.h"
|
||||
#include "Utils/Logging/Log.h"
|
||||
|
||||
#include <filesystem>
|
||||
#include <fstream>
|
||||
@@ -21,7 +22,7 @@ class RawTemplater::Impl
|
||||
std::ifstream file(filename, std::ios::in | std::ios::binary);
|
||||
if (!file.is_open())
|
||||
{
|
||||
std::cerr << "Failed to open file \"" << filename << "\"\n";
|
||||
con::error("Failed to open file \"{}\"", filename);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -61,7 +62,7 @@ public:
|
||||
m_build_log_file = std::ofstream(m_args.m_build_log_file, std::ios::out | std::ios::binary);
|
||||
if (!m_build_log_file.is_open())
|
||||
{
|
||||
std::cerr << "Failed to open build log file \"" << m_args.m_build_log_file << "\"\n";
|
||||
con::error("Failed to open build log file \"{}\"", m_args.m_build_log_file);
|
||||
return false;
|
||||
}
|
||||
m_write_build_log = true;
|
||||
|
||||
Reference in New Issue
Block a user