From 81e6b5747cb398439be5049757e4b63d09d3d006 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Wo=CC=81jcik?= <3044353+pwojcikdev@users.noreply.github.com> Date: Tue, 23 Jan 2024 18:45:06 +0100 Subject: [PATCH] Warning about using cerr with colors --- nano/lib/logging.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nano/lib/logging.cpp b/nano/lib/logging.cpp index 8e9062288d..4147ea5a3e 100644 --- a/nano/lib/logging.cpp +++ b/nano/lib/logging.cpp @@ -143,6 +143,11 @@ void nano::logger::initialize_common (nano::log_config const & config, std::opti } else { + if (config.console.colors) + { + std::cerr << "WARNING: Logging to cerr is enabled, console colors will be disabled" << std::endl; + } + auto cerr_sink = std::make_shared (); global_sinks.push_back (cerr_sink); }