fix(backend): Increase logging level threshold of RPC service to WARNING (#9576)

Increase the logging threshold to WARNING to avoid chatty RPC service
request logs.

Before:
![RPC calls show up in backend
log](https://github.com/user-attachments/assets/70791f87-12ef-4a12-8343-4b8641302faa)
This commit is contained in:
Zamil Majdy
2025-03-05 19:35:43 +07:00
committed by GitHub
parent b5c100748f
commit 55d6495155

View File

@@ -326,7 +326,12 @@ class FastApiAppService(BaseAppService, ABC):
f"[{self.service_name}] Starting RPC server at http://{api_host}:{self.get_port()}"
)
server = uvicorn.Server(
uvicorn.Config(self.fastapi_app, host=api_host, port=self.get_port())
uvicorn.Config(
self.fastapi_app,
host=api_host,
port=self.get_port(),
log_level="warning",
)
)
self.shared_event_loop.run_until_complete(server.serve())