Skip to content

Commit

Permalink
lsp: Push sphinx output through the logging system
Browse files Browse the repository at this point in the history
This ensures that sphinx output obeys settings like `esbonio.logging.window`
  • Loading branch information
alcarney committed Apr 17, 2024
1 parent d8e7d20 commit 1fdc011
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,7 @@ async def forward_stderr(server: asyncio.subprocess.Process):

# EOF is signalled with an empty bytestring
while (line := await server.stderr.readline()) != b"":
sys.stderr.buffer.write(line)
sys.stderr.buffer.flush()
sphinx_logger.info(line.decode())


def make_subprocess_sphinx_client(
Expand Down

0 comments on commit 1fdc011

Please sign in to comment.