Skip to content

Commit

Permalink
watch: do not remove leading whitespaces from logs to preserve tabs a…
Browse files Browse the repository at this point in the history
…nd look of the logs
  • Loading branch information
Kamilcuk committed May 20, 2024
1 parent 2c7bb17 commit 9ef994e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nomad_tools/nomad_watch.py
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ def __run_in(self):
linebytes = base64.b64decode(line64.encode())
lines = linebytes.decode(errors="replace").splitlines()
for line in lines:
self.tk.log_task(self.stderr, line.strip())
self.tk.log_task(self.stderr, line.rstrip())
fileevent: Optional[str] = event.get("FileEvent")
if fileevent == "file deleted":
# Deleted means end of stream.
Expand Down

0 comments on commit 9ef994e

Please sign in to comment.