From a2f1b21c6ce0bb812b5e66780b4b5da7a97bcc2c Mon Sep 17 00:00:00 2001 From: Richard Moch Date: Thu, 31 Jan 2019 12:46:56 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(logging)=20fix=20wrong=20settings?= =?UTF-8?q?=20for=20tracking=20logs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We were initializing TRACKING_IGNORE_URL_PATTERNS to None instead of a list of url to ignore when writing tracking logs, making each requests track a TypeError. --- config/cms/docker_run_production.py | 2 +- config/lms/docker_run_production.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/cms/docker_run_production.py b/config/cms/docker_run_production.py index 817a1703..2926ad94 100644 --- a/config/cms/docker_run_production.py +++ b/config/cms/docker_run_production.py @@ -352,7 +352,7 @@ # Event Tracking TRACKING_IGNORE_URL_PATTERNS = config( - "TRACKING_IGNORE_URL_PATTERNS", default=None, formatter=json.loads + "TRACKING_IGNORE_URL_PATTERNS", default=TRACKING_IGNORE_URL_PATTERNS, formatter=json.loads ) # Heartbeat diff --git a/config/lms/docker_run_production.py b/config/lms/docker_run_production.py index 5473db16..bd2c822b 100644 --- a/config/lms/docker_run_production.py +++ b/config/lms/docker_run_production.py @@ -483,7 +483,7 @@ # Event Tracking TRACKING_IGNORE_URL_PATTERNS = config( - "TRACKING_IGNORE_URL_PATTERNS", default=None, formatter=json.loads + "TRACKING_IGNORE_URL_PATTERNS", default=TRACKING_IGNORE_URL_PATTERNS, formatter=json.loads ) # SSL external authentication settings