diff options
| author | Dan Engelbrecht <[email protected]> | 2025-08-26 14:05:15 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2025-08-26 14:05:15 +0200 |
| commit | 0cc32cae5e3fb832bbad584ce86a308dc6104c46 (patch) | |
| tree | 33d81192d767864b5149aeece975b321ef04a00a /src/zenutil/logging.cpp | |
| parent | improve console output (#476) (diff) | |
| download | zen-0cc32cae5e3fb832bbad584ce86a308dc6104c46.tar.xz zen-0cc32cae5e3fb832bbad584ce86a308dc6104c46.zip | |
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
Diffstat (limited to 'src/zenutil/logging.cpp')
| -rw-r--r-- | src/zenutil/logging.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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<spdlog::sinks::ansicolor_stdout_sink_mt>(); + if (LogOptions.QuietConsole) + { + ConsoleSink->set_level(spdlog::level::warn); + } Sinks.push_back(ConsoleSink); } |