From b0b34ad0f7eff335856c6762ed89fb9b4ae054e0 Mon Sep 17 00:00:00 2001 From: Daniel Lee Date: Tue, 17 Jun 2025 22:09:10 -0700 Subject: [PATCH 1/2] fix: set default log level for asgi logger to WARNING to match default python behavior. --- src/functions_framework/aio/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions_framework/aio/__init__.py b/src/functions_framework/aio/__init__.py index 4245f2d1..e30b5f99 100644 --- a/src/functions_framework/aio/__init__.py +++ b/src/functions_framework/aio/__init__.py @@ -172,7 +172,7 @@ def _configure_app_execution_id_logging(): "stream": "ext://functions_framework.execution_id.logging_stream", }, }, - "root": {"level": "INFO", "handlers": ["asgi"]}, + "root": {"level": "WARNING", "handlers": ["asgi"]}, } ) From 574a16001e3346c553c9f30127137d74906ac5d0 Mon Sep 17 00:00:00 2001 From: Daniel Lee Date: Tue, 17 Jun 2025 22:13:20 -0700 Subject: [PATCH 2/2] fix: fix broken test. --- tests/test_functions/execution_id/async_main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_functions/execution_id/async_main.py b/tests/test_functions/execution_id/async_main.py index 7149e7fb..4485e3f4 100644 --- a/tests/test_functions/execution_id/async_main.py +++ b/tests/test_functions/execution_id/async_main.py @@ -53,7 +53,7 @@ def sync_function_in_async_context(request): def sync_cloudevent_with_context(cloud_event): context = execution_id._get_current_context() if context: - logger.info(f"Execution ID in sync CloudEvent: {context.execution_id}") + logger.warning(f"Execution ID in sync CloudEvent: {context.execution_id}") else: logger.error("No execution context in sync CloudEvent function!")