From 009b6a28a58117bd7a60003e60c28f333e736cc4 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Wed, 11 Dec 2019 07:56:27 +0100 Subject: [PATCH] copr: frontend: enable debugging output on devel And update comments so they reference the correct format of new copr-frontend's LOGGING_LEVEL option. --- roles/copr/frontend-cloud/templates/copr.conf | 4 +++- roles/copr/frontend/templates/copr.conf | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/roles/copr/frontend-cloud/templates/copr.conf b/roles/copr/frontend-cloud/templates/copr.conf index 7ceee06120..3a7d8f28c3 100644 --- a/roles/copr/frontend-cloud/templates/copr.conf +++ b/roles/copr/frontend-cloud/templates/copr.conf @@ -28,7 +28,9 @@ SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://copr-fe:{{ copr_database_passwo # logging options #SEND_LOGS_TO = ['root@localhost'] -#LOGGING_LEVEL = logging.ERROR +{% if devel %} +LOGGING_LEVEL = 'debug' +{% endif %} DEBUG = False SQLALCHEMY_ECHO = False diff --git a/roles/copr/frontend/templates/copr.conf b/roles/copr/frontend/templates/copr.conf index b58daaedd1..0b5f10d4b3 100644 --- a/roles/copr/frontend/templates/copr.conf +++ b/roles/copr/frontend/templates/copr.conf @@ -24,7 +24,7 @@ SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://copruser:{{ copruser_db_passwor # logging options #SEND_LOGS_TO = ['root@localhost'] -#LOGGING_LEVEL = logging.ERROR +#LOGGING_LEVEL = 'info' DEBUG = False SQLALCHEMY_ECHO = False