From 6ab836934b7a1ca3bef38cd492f8024184aa07eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Lyson=C4=9Bk?= Date: Tue, 12 Jun 2018 14:05:30 +0200 Subject: [PATCH] tuned-adm: Print only CONSOLE log messages by default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Print only log messages with log level CONSOLE by default in tuned-adm. If we had the log level set to ERROR, people might be surprised they suddenly get a lot of errors. The errors will probably in most cases be harmless, e.g. a tuning is not supported on the user's system. We should first make the logging consistent so that messages about unsupported tunings are logged as WARN instead. Then we change tuned-adm to print messages with level ERROR as well. Signed-off-by: Ondřej Lysoněk --- tuned/consts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuned/consts.py b/tuned/consts.py index bd55a45..ab87c70 100644 --- a/tuned/consts.py +++ b/tuned/consts.py @@ -115,7 +115,7 @@ ACTIVE_PROFILE_MANUAL = "manual" LOG_LEVEL_CONSOLE = 60 LOG_LEVEL_CONSOLE_NAME = "CONSOLE" -CAPTURE_LOG_LEVEL = "error" +CAPTURE_LOG_LEVEL = "console" CAPTURE_LOG_LEVELS = { "debug": logging.DEBUG, "info": logging.INFO, -- 2.20.1