Skip to content

Commit a576a8f

Browse files
authored
fix: set default log level for asgi logger to WARNING to match default python behavior (#381)
* fix: set default log level for asgi logger to WARNING to match default python behavior. * fix: fix broken test.
1 parent 42b7fdd commit a576a8f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/functions_framework/aio/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def _configure_app_execution_id_logging():
172172
"stream": "ext://functions_framework.execution_id.logging_stream",
173173
},
174174
},
175-
"root": {"level": "INFO", "handlers": ["asgi"]},
175+
"root": {"level": "WARNING", "handlers": ["asgi"]},
176176
}
177177
)
178178

tests/test_functions/execution_id/async_main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def sync_function_in_async_context(request):
5353
def sync_cloudevent_with_context(cloud_event):
5454
context = execution_id._get_current_context()
5555
if context:
56-
logger.info(f"Execution ID in sync CloudEvent: {context.execution_id}")
56+
logger.warning(f"Execution ID in sync CloudEvent: {context.execution_id}")
5757
else:
5858
logger.error("No execution context in sync CloudEvent function!")
5959

0 commit comments

Comments
 (0)