mirror of
https://github.com/containers/podman-compose.git
synced 2025-04-15 04:58:35 +02:00
Fix comments related to logging
Signed-off-by: Yusuke Matsubara <whym@whym.org>
This commit is contained in:
parent
07af8488db
commit
baccce4f3f
@ -1464,10 +1464,8 @@ class Podman:
|
||||
chunk = await self._readchunk(reader)
|
||||
parts = chunk.split(b"\n")
|
||||
|
||||
# Iff parts ends with '', the last part is a incomplete line;
|
||||
# The rest are complete lines
|
||||
|
||||
for i, part in enumerate(parts):
|
||||
# Iff part is last and non-empty, we leave an ongoing line to be completed later
|
||||
if i < len(parts) - 1:
|
||||
_formatted_print_with_nl(part.decode())
|
||||
line_ongoing = False
|
||||
@ -1475,7 +1473,8 @@ class Podman:
|
||||
_formatted_print_without_nl(part.decode())
|
||||
line_ongoing = True
|
||||
if line_ongoing:
|
||||
print(file=sink, end="\n") # End the unfinished line
|
||||
# Make sure the last line ends with EOL
|
||||
print(file=sink, end="\n")
|
||||
|
||||
def exec(
|
||||
self,
|
||||
|
Loading…
Reference in New Issue
Block a user