Skip to content

Commit

Permalink
fix: this is funny. don't strip newlines. final answer.
Browse files Browse the repository at this point in the history
  • Loading branch information
cofin committed Dec 13, 2023
1 parent a67ded8 commit 77ec4cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions litestar_vite/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 77ec4cc

Please sign in to comment.