Skip to content

Commit

Permalink
adjust formatting to lower indent
Browse files Browse the repository at this point in the history
  • Loading branch information
maxfischer2781 committed Jan 18, 2023
1 parent dd3c6a1 commit aa44f36
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions uvicorn/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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:
Expand Down

0 comments on commit aa44f36

Please sign in to comment.