diff --git a/planemo/galaxy/config.py b/planemo/galaxy/config.py index adeb99670..c4b6480b3 100644 --- a/planemo/galaxy/config.py +++ b/planemo/galaxy/config.py @@ -205,10 +205,13 @@ def read_log(ctx, log_path, e: threading.Event): log_fh = open(log_path, "a+") log_lines = log_fh.read() if log_lines: - ctx.log(log_lines) + ctx.log(log_lines.rstrip()) e.wait(1) finally: if log_fh: + log_lines = log_fh.read() + if log_lines: + ctx.log(log_lines.rstrip()) log_fh.close()