From c02af32e7503d846c06b30a1ccf25b9e96a9dfc5 Mon Sep 17 00:00:00 2001 From: Jukka Aho Date: Sat, 9 May 2026 17:20:04 +0300 Subject: [PATCH] refactor(io): use Logging for Gmsh reader progress Replace unconditional `println` chatter with structured `@info` events so library callers can filter noise via the standard logging pipeline. - Log the filename when ingest starts and emit a single summary record with node/element counts plus physical group keys. --- src/io/gmsh_reader.jl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/io/gmsh_reader.jl b/src/io/gmsh_reader.jl index 95ae383..f008a83 100644 --- a/src/io/gmsh_reader.jl +++ b/src/io/gmsh_reader.jl @@ -26,7 +26,7 @@ end Read Gmsh mesh file (ASCII format 4.1) """ function read_gmsh_mesh(filename::String) - println("Reading Gmsh mesh: $filename") + @info "Reading Gmsh mesh" filename # Storage nodes = Dict{Int,Vector{Float64}}() @@ -143,9 +143,7 @@ function read_gmsh_mesh(filename::String) mesh = GmshMesh(node_matrix, elem_matrix, groups) - println(" Nodes: $(size(node_matrix, 2))") - println(" Elements: $(size(elem_matrix, 2))") - println(" Physical groups: $(keys(groups))") + @info "Gmsh mesh loaded" nodes = size(node_matrix, 2) elements = size(elem_matrix, 2) physical_groups = collect(keys(groups)) return mesh end