Skip to content

Commit 5fed7d3

Browse files
committed
Update run_command log formatting.
1 parent 0ba3829 commit 5fed7d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/makeapp/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from contextlib import contextmanager
1010
from pathlib import Path
1111
from subprocess import Popen, PIPE, STDOUT
12+
from textwrap import indent
1213
from typing import Generator
1314

1415
from .exceptions import CommandError
@@ -136,7 +137,7 @@ def run_command(command: str, *, err_msg: str = '', env: dict | None = None) ->
136137
data = []
137138
out, _ = prc.communicate()
138139

139-
LOG.debug(f'Command output:\n`{out}`')
140+
LOG.debug(indent(out, prefix=" "))
140141

141142
for item in out.splitlines():
142143
item = item.strip()

0 commit comments

Comments
 (0)