We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce3804e commit 7f49bb4Copy full SHA for 7f49bb4
aws_lambda_powertools/logging/logger.py
@@ -602,15 +602,15 @@ def flush_buffer(self):
602
for log_line in self._buffer_cache.get(tracer_id):
603
self._create_and_flush_log_record(log_line)
604
605
- if self._buffer_cache.has_evicted:
+ if self._buffer_cache.has_evicted(tracer_id):
606
warnings.warn(
607
message="Some logs are not displayed because they were evicted from the buffer. "
608
"Increase buffer size to store more logs in the buffer",
609
category=PowertoolsUserWarning,
610
stacklevel=2,
611
)
612
- self._buffer_cache.has_evicted = False
613
+ # Clear the entire cache
614
self._buffer_cache.clear()
615
616
def debug(
0 commit comments