Skip to content

Commit 95b3d67

Browse files
Merge pull request #1137 from Geode-solutions/fix/minor-fixes-cosmetics
fix(IO): avoid logger flooding while saving Section meshes
2 parents 67d8f4f + 822a1d0 commit 95b3d67

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

include/geode/model/representation/builder/brep_builder.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,16 +230,16 @@ namespace geode
230230
const Surface3D& surface, const ModelBoundary3D& boundary );
231231

232232
void add_corner_in_corner_collection(
233-
const Corner3D& surface, const CornerCollection3D& collection );
233+
const Corner3D& corner, const CornerCollection3D& collection );
234234

235235
void add_line_in_line_collection(
236-
const Line3D& surface, const LineCollection3D& collection );
236+
const Line3D& line, const LineCollection3D& collection );
237237

238238
void add_surface_in_surface_collection(
239239
const Surface3D& surface, const SurfaceCollection3D& collection );
240240

241241
void add_block_in_block_collection(
242-
const Block3D& surface, const BlockCollection3D& collection );
242+
const Block3D& block, const BlockCollection3D& collection );
243243

244244
void set_point( index_t unique_vertex, const Point3D& point );
245245

src/geode/model/representation/io/geode/geode_section_output.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ namespace geode
3939
void OpenGeodeSectionOutput::save_section_files(
4040
const Section& section, std::string_view directory ) const
4141
{
42+
const auto level = Logger::level();
43+
Logger::set_level( Logger::LEVEL::warn );
4244
async::parallel_invoke(
4345
[&directory, &section] {
4446
section.save_identifier( directory );
@@ -60,6 +62,7 @@ namespace geode
6062
section.save_line_collections( directory );
6163
section.save_surface_collections( directory );
6264
} );
65+
Logger::set_level( level );
6366
}
6467

6568
void OpenGeodeSectionOutput::archive_section_files(

0 commit comments

Comments
 (0)