From 77ec4cc0260e584bc31dd687439eb3cf4934b8b2 Mon Sep 17 00:00:00 2001 From: Cody Fincher Date: Wed, 13 Dec 2023 14:55:41 -0600 Subject: [PATCH] fix: this is funny. don't strip newlines. final answer. --- litestar_vite/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litestar_vite/commands.py b/litestar_vite/commands.py index 6e0b89f..94e6e45 100644 --- a/litestar_vite/commands.py +++ b/litestar_vite/commands.py @@ -116,11 +116,11 @@ async def _run_vite(command_to_run: str, app: Litestar) -> None: async def read_stdout(vite_process: Process) -> None: async for stdout in TextReceiveStream(vite_process.stdout): # type: ignore[arg-type] - logger.info(stdout.replace("\n", "")) + logger.info(stdout) async def read_stderr(vite_process: Process) -> None: async for stdout in TextReceiveStream(vite_process.stderr): # type: ignore[arg-type] - logger.warning(stdout.replace("\n", "")) + logger.warning(stdout) async with await open_process(command_to_run) as vite_process, create_task_group() as tg: tg.start_soon(read_stdout, vite_process)