Skip to content
This repository has been archived by the owner on Nov 24, 2020. It is now read-only.

Commit

Permalink
Show more at end of log
Browse files Browse the repository at this point in the history
  • Loading branch information
IainNZ committed Sep 26, 2014
1 parent 2db20bd commit 1fa2d08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ end
function build_log(pkg_name, add_log, using_log, full_log)
function trunc_section(s)
l = split(s,"\n")
if length(l) >= 55
return join(vcat(l[1:20],{"... truncated ..."},l[end-30:end]),"\n")
if length(l) >= 75
return join(vcat(l[1:20],{"... truncated ..."},l[end-50:end]),"\n")
end
return s
end
Expand All @@ -32,4 +32,4 @@ function build_log(pkg_name, add_log, using_log, full_log)
log_str *= trunc_section(full_log)
log_str *= "\n>>> end of log"
return log_str
end
end

0 comments on commit 1fa2d08

Please sign in to comment.