mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-11-28 15:27:47 +00:00
chore: update all logging to use centralized logging component
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include "Parsing/Simple/Matcher/SimpleMatcherFactory.h"
|
||||
#include "Parsing/Simple/SimpleLexer.h"
|
||||
#include "Parsing/Simple/SimpleParserValue.h"
|
||||
#include "Utils/Logging/Log.h"
|
||||
|
||||
#include <format>
|
||||
|
||||
@@ -210,17 +211,17 @@ namespace graph2d
|
||||
|
||||
if (!parser.Parse())
|
||||
{
|
||||
std::cerr << std::format("Failed to parse {} \"{}\"\n", graphTypeName, graphName);
|
||||
con::error("Failed to parse {} \"{}\"", graphTypeName, graphName);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
if (!parser.HasExpectedKnotCount())
|
||||
{
|
||||
std::cerr << std::format("Failed to load {} \"{}\": Actual knot count ({}) differs from expected ({})\n",
|
||||
graphTypeName,
|
||||
graphName,
|
||||
parser.GetActualKnotCount(),
|
||||
parser.GetExpectedKnotCount());
|
||||
con::error("Failed to load {} \"{}\": Actual knot count ({}) differs from expected ({})",
|
||||
graphTypeName,
|
||||
graphName,
|
||||
parser.GetActualKnotCount(),
|
||||
parser.GetExpectedKnotCount());
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user