diff --git a/test/integration_tests/ConsoleSinkStdoutMultipleFormatsTest.cpp b/test/integration_tests/ConsoleSinkStdoutMultipleFormatsTest.cpp index f344bc32..d8cfa72d 100644 --- a/test/integration_tests/ConsoleSinkStdoutMultipleFormatsTest.cpp +++ b/test/integration_tests/ConsoleSinkStdoutMultipleFormatsTest.cpp @@ -22,7 +22,12 @@ TEST_CASE("console_sink_stdout_multiple_formats") static std::string const logger_name_b = "logger_b"; // Start the logging backend thread - Backend::start(); + BackendOptions bo; + + // Silence the error_notifier as we are capturing the stdout in the test, we do not want extra messages + bo.error_notifier = [](std::string const&) {}; + + Backend::start(bo); quill::testing::CaptureStdout(); diff --git a/test/integration_tests/JsonConsoleLoggingTest.cpp b/test/integration_tests/JsonConsoleLoggingTest.cpp index e5d93f2c..a42d86c5 100644 --- a/test/integration_tests/JsonConsoleLoggingTest.cpp +++ b/test/integration_tests/JsonConsoleLoggingTest.cpp @@ -22,7 +22,12 @@ TEST_CASE("json_console_logging") static std::string const logger_name_a = "logger_a"; // Start the logging backend thread - Backend::start(); + BackendOptions bo; + + // Silence the error_notifier as we are capturing the stdout in the test, we do not want extra messages + bo.error_notifier = [](std::string const&) {}; + + Backend::start(bo); quill::testing::CaptureStdout(); diff --git a/test/integration_tests/MultipleSinksSameLoggerTest.cpp b/test/integration_tests/MultipleSinksSameLoggerTest.cpp index 3e94a9ab..02289ae3 100644 --- a/test/integration_tests/MultipleSinksSameLoggerTest.cpp +++ b/test/integration_tests/MultipleSinksSameLoggerTest.cpp @@ -21,7 +21,12 @@ TEST_CASE("multiple_sinks_same_logger") static constexpr char const* filename = "multiple_sinks_same_logger.log"; // Start the logging backend thread - Backend::start(); + BackendOptions bo; + + // Silence the error_notifier as we are capturing the stdout in the test, we do not want extra messages + bo.error_notifier = [](std::string const&) {}; + + Backend::start(bo); quill::testing::CaptureStdout();