From 022ac7036a0dca2baff7f4402b7a44c14de723a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Kone=C4=8Dn=C3=BD?= Date: Thu, 28 Jul 2022 14:28:40 +0200 Subject: [PATCH] [toddlers] Don't use DEBUG log level on production MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Don't overflow the log with DEBUG messages on production for toddlers. This is fine on staging, but on production this should be on demand. Signed-off-by: Michal Konečný --- .../toddlers/templates/fedora-messaging.toml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/roles/openshift-apps/toddlers/templates/fedora-messaging.toml b/roles/openshift-apps/toddlers/templates/fedora-messaging.toml index bca861e5fe..8b8c1dc049 100644 --- a/roles/openshift-apps/toddlers/templates/fedora-messaging.toml +++ b/roles/openshift-apps/toddlers/templates/fedora-messaging.toml @@ -296,27 +296,47 @@ handlers = ["console"] # Toddlers logger, feel free to bump the level to DEBUG if you need to [log_config.loggers.toddlers] +{% if env == "staging" %} level = "DEBUG" +{% else %} +level = "INFO" +{% endif %} propagate = false handlers = ["console"] [log_config.loggers.toddlers.utils.bugzilla_system] +{% if env == "staging" %} level = "DEBUG" +{% else %} +level = "INFO" +{% endif %} propagate = false handlers = ["console"] [log_config.loggers.toddlers.plugins.pdc_retired_packages] +{% if env == "staging" %} level = "DEBUG" +{% else %} +level = "INFO" +{% endif %} propagate = false handlers = ["console"] [log_config.loggers.toddlers.plugins.pdc_import_compose] +{% if env == "staging" %} level = "DEBUG" +{% else %} +level = "INFO" +{% endif %} propagate = false handlers = ["console"] [log_config.loggers.toddlers.plugins.distgit_bugzilla_sync] +{% if env == "staging" %} level = "DEBUG" +{% else %} +level = "INFO" +{% endif %} propagate = false handlers = ["console"]