mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-26 19:56:27 -06:00
Merge pull request #4007 from atgeirr/limit-terminal-warnings-during-deck-input
Limit warnings to terminal during deck input.
This commit is contained in:
commit
1ca731a388
@ -465,7 +465,11 @@ Opm::setupLogging(const int mpi_rank_,
|
||||
if (mpi_rank_ == 0) {
|
||||
std::shared_ptr<Opm::StreamLog> streamLog = std::make_shared<Opm::StreamLog>(std::cout, Opm::Log::StdoutMessageTypes);
|
||||
Opm::OpmLog::addBackend(stdout_log_id, streamLog);
|
||||
|
||||
// Set a tag limit of 10 (no category limit). Will later in
|
||||
// the run be replaced by calling setupMessageLimiter(), after
|
||||
// the deck is read and the (possibly user-set) category
|
||||
// limits are known.
|
||||
streamLog->setMessageLimiter(std::make_shared<Opm::MessageLimiter>(10));
|
||||
bool use_color_coding = OpmLog::stdoutIsTerminal();
|
||||
streamLog->setMessageFormatter(std::make_shared<Opm::SimpleMessageFormatter>(use_color_coding));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user