Skip to content

Commit

Permalink
Merge pull request #1473 from mvdbeek/display_last_line_of_logs
Browse files Browse the repository at this point in the history
Display last lines of logs
  • Loading branch information
mvdbeek authored Aug 22, 2024
2 parents 7601340 + 79057a0 commit 7352b61
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion planemo/galaxy/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()


Expand Down

0 comments on commit 7352b61

Please sign in to comment.