From aa44f36ae410ee01ea3d7e3f587ea8d574f9a9f0 Mon Sep 17 00:00:00 2001 From: Max Fischer Date: Wed, 18 Jan 2023 11:58:47 +0100 Subject: [PATCH] adjust formatting to lower indent --- uvicorn/server.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/uvicorn/server.py b/uvicorn/server.py index 61573dd32..22a0d86aa 100644 --- a/uvicorn/server.py +++ b/uvicorn/server.py @@ -79,9 +79,7 @@ async def _serve(self, sockets: Optional[List[socket.socket]] = None) -> None: self.lifespan = config.lifespan_class(config) message = "Started server process [%d]" - color_message = ( - "Started server process [" + click.style("%d", fg="cyan") + "]" - ) + color_message = "Started server process [" + click.style("%d", fg="cyan") + "]" logger.info(message, process_id, extra={"color_message": color_message}) await self.startup(sockets=sockets) @@ -91,9 +89,7 @@ async def _serve(self, sockets: Optional[List[socket.socket]] = None) -> None: await self.shutdown(sockets=sockets) message = "Finished server process [%d]" - color_message = ( - "Finished server process [" + click.style("%d", fg="cyan") + "]" - ) + color_message = "Finished server process [" + click.style("%d", fg="cyan") + "]" logger.info(message, process_id, extra={"color_message": color_message}) async def startup(self, sockets: list = None) -> None: