Skip to content

Commit 7ed8fe5

Browse files
committed
cleanup
1 parent 9d584fa commit 7ed8fe5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/service-library/src/servicelib/logging_utils.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -367,15 +367,13 @@ def async_loggers(
367367
)
368368

369369
try:
370-
# Apply filters if provided
371370
if logger_filter_mapping:
372371
_apply_logger_filters(logger_filter_mapping)
373372

374-
_logger.info("Async logging context initialized with unlimited queue")
375-
yield
373+
with log_context(_logger, logging.INFO, "Asynchronous logging"):
374+
yield
376375

377376
finally:
378-
# Cleanup: Restore all loggers to their original state
379377
try:
380378
_restore_logger_state(original_logger_state)
381379

0 commit comments

Comments
 (0)