Skip to content

Commit a09749b

Browse files
committed
Clearing thread local keys with clear_state=True
1 parent 7a13403 commit a09749b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Diff for: aws_lambda_powertools/logging/logger.py

+1
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,7 @@ def structure_logs(self, append: bool = False, formatter_options: Optional[Dict]
648648

649649
# Mode 3
650650
self.registered_formatter.clear_state()
651+
self.registered_formatter.clear_thread_local_keys()
651652
self.registered_formatter.append_keys(**log_keys)
652653

653654
def set_correlation_id(self, value: Optional[str]) -> None:

Diff for: poetry.toml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[virtualenvs]
2+
in-project = true

0 commit comments

Comments
 (0)