diff --git a/roles/bodhi2/base/templates/logging.yaml b/roles/bodhi2/base/templates/logging.yaml index 78f1467fef..79e3383976 100644 --- a/roles/bodhi2/base/templates/logging.yaml +++ b/roles/bodhi2/base/templates/logging.yaml @@ -33,11 +33,19 @@ handlers: subject: "Bodhi error" loggers: bodhi: +{% if env == "production" %} level: INFO +{% else %} + level: DEBUG +{% endif %} handlers: [console, smtp] propagate: 0 root: - level: INFO +{% if env == "production" %} + level: ERROR +{% else %} + level: DEBUG +{% endif %} handlers: [console, smtp] twisted: {% if env == "production" %} @@ -46,6 +54,3 @@ loggers: level: DEBUG {% endif %} handlers: [console, smtp] -root: - level: NOTSET - handlers: []