Skip to content

Commit a594a7a

Browse files
committed
fix: align WSGI logging level with ASGI when execution ID logging is enabled
When LOG_EXECUTION_ID is enabled, the WSGI implementation was setting the root logger to WARNING level, which silenced info-level logs. This was inconsistent with: - The ASGI implementation which correctly uses INFO level - The default setup_logging() function which also uses INFO level This change ensures that logger.info() calls are visible in both WSGI and ASGI stacks when execution ID logging is enabled.
1 parent 1123eea commit a594a7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/functions_framework/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ def _configure_app_execution_id_logging():
437437
"stream": "ext://functions_framework.execution_id.logging_stream",
438438
},
439439
},
440-
"root": {"level": "WARNING", "handlers": ["wsgi"]},
440+
"root": {"level": "INFO", "handlers": ["wsgi"]},
441441
}
442442
)
443443

0 commit comments

Comments
 (0)