1
0
Fork 0

tuned-adm: Print only CONSOLE log messages by default

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 <olysonek@redhat.com>
This commit is contained in:
Ondřej Lysoněk 2018-06-12 14:05:30 +02:00
parent 91c89db361
commit 6ab836934b

View file

@ -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,