From 1c5372dddc72b83200bd97b4cc4e00a557b35420 Mon Sep 17 00:00:00 2001 From: Stefan Heinemann Date: Thu, 16 Jan 2025 11:34:06 +0100 Subject: [PATCH] Add taskName to the list of default log attrs In Python 3.12 the attribute `taskName` was introduced. This broke our unit tests, as they didn't expect this attribute to be there and added them to the list of extras --- logging_utilities/formatters/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/logging_utilities/formatters/__init__.py b/logging_utilities/formatters/__init__.py index 7bc32e0..d7cf810 100644 --- a/logging_utilities/formatters/__init__.py +++ b/logging_utilities/formatters/__init__.py @@ -20,5 +20,6 @@ 'stack_info', 'msg', 'args', - 'message' + 'message', + 'taskName' }