From 697db306609ad4286168da30ca521297a7be05f0 Mon Sep 17 00:00:00 2001 From: Marko Bocevski Date: Fri, 16 Oct 2020 11:59:05 +0200 Subject: [PATCH] Set ckan extensions default level to INFO --- images/ckan/2.7/Dockerfile | 2 ++ images/ckan/2.8/Dockerfile | 2 ++ images/ckan/2.9/Dockerfile | 2 ++ 3 files changed, 6 insertions(+) diff --git a/images/ckan/2.7/Dockerfile b/images/ckan/2.7/Dockerfile index dd56eb4..f33aa94 100644 --- a/images/ckan/2.7/Dockerfile +++ b/images/ckan/2.7/Dockerfile @@ -153,6 +153,8 @@ RUN pip install -e /srv/app/src/ckan && \ # Generate CKAN config paster --plugin=ckan make-config ckan ${APP_DIR}/production.ini && \ paster --plugin=ckan config-tool ${APP_DIR}/production.ini "ckan.plugins = ${CKAN__PLUGINS}" && \ + # Set the default level for extensions to INFO + paster --plugin=ckan config-tool ${APP_DIR}/production.ini -s logger_ckanext -e level=INFO && \ # Create the data directory mkdir ${DATA_DIR} && \ # Change ownership to app user diff --git a/images/ckan/2.8/Dockerfile b/images/ckan/2.8/Dockerfile index 3815cae..3688b5b 100644 --- a/images/ckan/2.8/Dockerfile +++ b/images/ckan/2.8/Dockerfile @@ -147,6 +147,8 @@ RUN pip install -e /srv/app/src/ckan && \ # Generate CKAN config paster --plugin=ckan make-config ckan ${APP_DIR}/production.ini && \ paster --plugin=ckan config-tool ${APP_DIR}/production.ini "ckan.plugins = ${CKAN__PLUGINS}" && \ + # Set the default level for extensions to INFO + paster --plugin=ckan config-tool ${APP_DIR}/production.ini -s logger_ckanext -e level=INFO && \ # Create the data directory mkdir ${DATA_DIR} && \ # Change ownership to app user diff --git a/images/ckan/2.9/Dockerfile b/images/ckan/2.9/Dockerfile index ba0487a..0ea323c 100644 --- a/images/ckan/2.9/Dockerfile +++ b/images/ckan/2.9/Dockerfile @@ -163,6 +163,8 @@ RUN pip install -e /srv/app/src/ckan && \ mkdir ${DATA_DIR} && \ # Webassets can't be loaded from env variables at runtime, it needs to be in the config so that it is created ckan config-tool ${APP_DIR}/production.ini "ckan.webassets.path = ${DATA_DIR}/webassets" && \ + # Set the default level for extensions to INFO + ckan config-tool ${APP_DIR}/production.ini -s logger_ckanext -e level=INFO && \ # Change ownership to app user chown -R ckan:ckan /srv/app