Skip to content

Commit

Permalink
only cat logs that exist
Browse files Browse the repository at this point in the history
  • Loading branch information
a2ray committed Oct 6, 2024
1 parent 9df7d17 commit f90992b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/SoundingDistributor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@ function catlocallogs(nparallelsoundings, nchainspersounding)
managerpids = [p[1] for p in getpids.(1:nparallelsoundings, nchainspersounding)]
map(managerpids) do p
locallogfile = "$p.log"
writetogloballog(read(locallogfile, String), newline=false)
rm(locallogfile)
if isfile(locallogfile)
writetogloballog(read(locallogfile, String), newline=false)
rm(locallogfile)
end
end
end

Expand Down

0 comments on commit f90992b

Please sign in to comment.