From 0cc32cae5e3fb832bbad584ce86a308dc6104c46 Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Tue, 26 Aug 2025 14:05:15 +0200 Subject: rework `--quiet` zenserver option add `--noconsole` option (#477) - Improvement: Changed zenserver `--quiet` option to suppress INFO level messages and below to surface startup and runtime errors - Feature: Added `--noconsole` option that suppresses all output to standard out, this works as the `--quiet` option used to work --- src/zenutil/logging.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/zenutil/logging.cpp') diff --git a/src/zenutil/logging.cpp b/src/zenutil/logging.cpp index cb0fd6679..8ff58ee73 100644 --- a/src/zenutil/logging.cpp +++ b/src/zenutil/logging.cpp @@ -121,6 +121,10 @@ BeginInitializeLogging(const LoggingOptions& LogOptions) else { auto ConsoleSink = std::make_shared(); + if (LogOptions.QuietConsole) + { + ConsoleSink->set_level(spdlog::level::warn); + } Sinks.push_back(ConsoleSink); } -- cgit v1.2.3