[toddlers] Don't use DEBUG log level on production

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ý <mkonecny@redhat.com>
This commit is contained in:
Michal Konečný 2022-07-28 14:28:40 +02:00
parent b56a7826c6
commit 022ac7036a

View file

@ -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"]