Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/coreComponents/common/initializeEnvironment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,16 @@ void setupLogger()
ExternalErrorHandler::instance().setErrorHandling( []( string_view errorMsg,
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
GEOS_LOG( errorMsg );
return;
}

std::string const stackHistory = LvArray::system::stackTrace( true );

GEOS_LOG( GEOS_FMT( "***** ERROR\n"
Expand Down
Loading