Skip to content

Commit 3298bc7

Browse files
committed
control: fix stream handling
1 parent 23a8e21 commit 3298bc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/warnet/control.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,8 @@ def _logs(pod_name: str, follow: bool):
339339

340340
try:
341341
stream = pod_log(pod_name, container_name=container_name, follow=follow)
342-
for line in stream.stream():
343-
print(line.decode("utf-8"), end=None)
342+
for line in stream:
343+
click.echo(line.decode("utf-8").rstrip())
344344
except Exception as e:
345345
print(e)
346346
except KeyboardInterrupt:

0 commit comments

Comments
 (0)