From ceba590393cba0bce720951b314920901483a1bb Mon Sep 17 00:00:00 2001 From: Randy Barlow Date: Tue, 14 May 2019 17:46:27 +0000 Subject: [PATCH] bodhi: Add logging for Twisted. Signed-off-by: Randy Barlow --- roles/bodhi2/base/templates/logging.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/bodhi2/base/templates/logging.yaml b/roles/bodhi2/base/templates/logging.yaml index 3fa6b4fe80..49accc0c45 100644 --- a/roles/bodhi2/base/templates/logging.yaml +++ b/roles/bodhi2/base/templates/logging.yaml @@ -35,6 +35,13 @@ loggers: root: level: INFO handlers: [console, smtp] + twisted: +{% if env == "production" %} + level: ERROR +{% else %} + level: DEBUG +{% endif %} + handlers: [console, smtp] root: level: NOTSET handlers: []