From bfcaa3c7532dd6661e5c71a180bd58019743134d 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 dc39b130..2dc954c1 100644 --- a/config/cms/docker_run_production.py +++ b/config/cms/docker_run_production.py @@ -339,7 +339,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 d6355b02..be41d752 100644 --- a/config/lms/docker_run_production.py +++ b/config/lms/docker_run_production.py @@ -471,7 +471,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