From bee2f520f010a6d2010a8039cd0b734489f10379 Mon Sep 17 00:00:00 2001 From: Yaz Saito Date: Thu, 23 Dec 2021 20:40:33 -0800 Subject: [PATCH] fix(python): use print for the startup message, not log.critical logging.critical is used to convey serious error situations. Some services set alerts on critical messages, so the use of log.critical for startup confuses them. --- python/src/wslink/backends/aiohttp/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/src/wslink/backends/aiohttp/__init__.py b/python/src/wslink/backends/aiohttp/__init__.py index 3ca8fb18..c77a384d 100644 --- a/python/src/wslink/backends/aiohttp/__init__.py +++ b/python/src/wslink/backends/aiohttp/__init__.py @@ -23,7 +23,7 @@ async def _on_startup(app): # Emit an expected log message so launcher.py knows we've started up. - logging.critical("wslink: Starting factory") + print("wslink: Starting factory") # We've seen some issues with stdout buffering - be conservative. sys.stdout.flush()