From 9ef994edcd6dd11d1a541192efc8df39c500b6b3 Mon Sep 17 00:00:00 2001 From: Kamil Cukrowski Date: Mon, 20 May 2024 10:10:50 +0200 Subject: [PATCH] watch: do not remove leading whitespaces from logs to preserve tabs and look of the logs --- src/nomad_tools/nomad_watch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nomad_tools/nomad_watch.py b/src/nomad_tools/nomad_watch.py index 4c0f1c4..faa9db4 100755 --- a/src/nomad_tools/nomad_watch.py +++ b/src/nomad_tools/nomad_watch.py @@ -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.