Skip to content

Commit ab32135

Browse files
committed
rich markup escape streamed process output
1 parent a7adc33 commit ab32135

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

reflex/utils/processes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from typing import Any, Literal, overload
1616

1717
import click
18+
import rich.markup
1819
from redis.exceptions import RedisError
1920
from rich.progress import Progress
2021

@@ -281,7 +282,7 @@ def stream_logs(
281282
return
282283
try:
283284
for line in process.stdout:
284-
console.debug(line, end="", progress=progress)
285+
console.debug(rich.markup.escape(line), end="", progress=progress)
285286
logs.append(line)
286287
yield line
287288
except ValueError:

0 commit comments

Comments
 (0)