From 65f100d374c6fad35b865c20e0d68ea599c39263 Mon Sep 17 00:00:00 2001 From: DENEL Bertrand Date: Wed, 10 Dec 2025 16:36:37 -0600 Subject: [PATCH 1/3] filtered out INFO message (typically from VTK) --- src/coreComponents/common/initializeEnvironment.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/coreComponents/common/initializeEnvironment.cpp b/src/coreComponents/common/initializeEnvironment.cpp index 86c313e53d1..5a355682c22 100644 --- a/src/coreComponents/common/initializeEnvironment.cpp +++ b/src/coreComponents/common/initializeEnvironment.cpp @@ -90,6 +90,13 @@ void setupLogger() ExternalErrorHandler::instance().setErrorHandling( []( string_view errorMsg, string_view detectionLocation ) { + // Filter out INFO level messages from external libraries (e.g., VTK) + if( errorMsg.find( "INFO|" ) != string_view::npos ) + { + // Just print the message without error formatting + GEOS_LOG( errorMsg ); + return; + } std::string const stackHistory = LvArray::system::stackTrace( true ); GEOS_LOG( GEOS_FMT( "***** ERROR\n" From cfd458850ebe07c175385f644186cddc278d6b80 Mon Sep 17 00:00:00 2001 From: MelReyCG <122801580+MelReyCG@users.noreply.github.com> Date: Thu, 11 Dec 2025 11:41:18 +0100 Subject: [PATCH 2/3] Update src/coreComponents/common/initializeEnvironment.cpp --- src/coreComponents/common/initializeEnvironment.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/coreComponents/common/initializeEnvironment.cpp b/src/coreComponents/common/initializeEnvironment.cpp index 5a355682c22..221168abfef 100644 --- a/src/coreComponents/common/initializeEnvironment.cpp +++ b/src/coreComponents/common/initializeEnvironment.cpp @@ -91,6 +91,7 @@ void setupLogger() string_view detectionLocation ) { // Filter out INFO level messages from external libraries (e.g., VTK) + // TODO: use dedicated functions to make the process easier to read ( error / signal lambda would calls either an error function or an info function, depending on a filtering function ) if( errorMsg.find( "INFO|" ) != string_view::npos ) { // Just print the message without error formatting From 0b4c49e35fe12b8bd245971dce8b5907af1ea7f2 Mon Sep 17 00:00:00 2001 From: MelReyCG <122801580+MelReyCG@users.noreply.github.com> Date: Mon, 15 Dec 2025 13:57:21 +0100 Subject: [PATCH 3/3] Update initializeEnvironment.cpp code style --- src/coreComponents/common/initializeEnvironment.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/coreComponents/common/initializeEnvironment.cpp b/src/coreComponents/common/initializeEnvironment.cpp index 221168abfef..6eeae2eaee3 100644 --- a/src/coreComponents/common/initializeEnvironment.cpp +++ b/src/coreComponents/common/initializeEnvironment.cpp @@ -91,13 +91,15 @@ void setupLogger() string_view detectionLocation ) { // Filter out INFO level messages from external libraries (e.g., VTK) - // TODO: use dedicated functions to make the process easier to read ( error / signal lambda would calls either an error function or an info function, depending on a filtering function ) + // TODO: use dedicated functions to make the process easier to read + // ( error / signal lambda would calls either an error function or an info function, depending on a filtering function ) if( errorMsg.find( "INFO|" ) != string_view::npos ) { // Just print the message without error formatting GEOS_LOG( errorMsg ); return; } + std::string const stackHistory = LvArray::system::stackTrace( true ); GEOS_LOG( GEOS_FMT( "***** ERROR\n"