From c4da25e9966527280fa61dc5c64c96451487ca1d Mon Sep 17 00:00:00 2001 From: Mahfouz Date: Mon, 11 Dec 2023 16:28:12 +0000 Subject: [PATCH 1/2] Filtering out verify token bad request from error logs --- emgcli/settings.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/emgcli/settings.py b/emgcli/settings.py index d31947da0..e7e72017e 100644 --- a/emgcli/settings.py +++ b/emgcli/settings.py @@ -87,6 +87,10 @@ '()': 'django.utils.log.CallbackFilter', 'callback': lambda record: "v1/utils/myaccounts" not in record.getMessage(), }, + 'exclude_token_verification': { + '()': 'django.utils.log.CallbackFilter', + 'callback': lambda record: "v1/utils/token/verify" not in record.getMessage(), + }, }, 'formatters': { 'default': { @@ -136,13 +140,13 @@ 'handlers': ['default'], 'level': 'INFO', 'propagate': False, - 'filters': ['exclude_myaccounts'], + 'filters': ['exclude_myaccounts', 'exclude_token_verification'], }, 'django.server': { 'handlers': ['default'], 'level': 'INFO', 'propagate': False, - 'filters': ['exclude_myaccounts'], + 'filters': ['exclude_myaccounts', 'exclude_token_verification'], }, 'django': { 'handlers': ['null'], From 481052f355b1839158f72e2893a1ced9c9c49a71 Mon Sep 17 00:00:00 2001 From: Mahfouz Date: Tue, 12 Dec 2023 10:08:20 +0000 Subject: [PATCH 2/2] Bumped API version --- emgcli/__init__.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/emgcli/__init__.py b/emgcli/__init__.py index 31dfb7928..d550e808a 100644 --- a/emgcli/__init__.py +++ b/emgcli/__init__.py @@ -1 +1 @@ -__version__: str = "2.4.35" +__version__: str = "2.4.36" diff --git a/pyproject.toml b/pyproject.toml index 569182588..2063ce372 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -117,7 +117,7 @@ max-line-length = 119 """ [tool.bumpversion] -current_version = "2.4.35" +current_version = "2.4.36" [[tool.bumpversion.files]] filename = "emgcli/__init__.py"