Pass around non-static logger instances and programmatic access to messages in-memory

This commit is contained in:
Thomas Krijnen
2026-06-10 18:30:54 +02:00
parent a751fb956d
commit a7738eeb64
132 changed files with 1029 additions and 884 deletions
+3 -3
View File
@@ -83,7 +83,7 @@ bool OpenCascadeKernel::convert(const taxonomy::loft::ptr loft, TopoDS_Shape& re
if (non_polygonal) {
if (loft->children.size() < 2) {
Logger::Error("GEO", 177, "Not enough sections to loft");
Logger::Root().Error("GEO", 177, "Not enough sections to loft");
return false;
}
@@ -124,7 +124,7 @@ bool OpenCascadeKernel::convert(const taxonomy::loft::ptr loft, TopoDS_Shape& re
auto first_wire_count = sections.front().size();
for (auto& section : sections) {
if (section.size() != first_wire_count) {
Logger::Error("GEO", 178, "Inconsistent number of wires in sections");
Logger::Root().Error("GEO", 178, "Inconsistent number of wires in sections");
return false;
}
}
@@ -261,7 +261,7 @@ bool OpenCascadeKernel::convert(const taxonomy::loft::ptr loft, TopoDS_Shape& re
*/
if (shps.size() < 2) {
Logger::Error("GEO", 179, "Not enough sections to loft");
Logger::Root().Error("GEO", 179, "Not enough sections to loft");
return false;
}