formula: increase fail log lines, allow config.
The default is almost never useful. 15 seems like a good medium as it'll not fill a 80x24 default but provides a bit more context. Also allow it to be overriden for developers and `test-bot`.
This commit is contained in:
parent
b5a20e79ee
commit
9aecb1be2b
@ -1304,8 +1304,14 @@ class Formula
|
||||
$stdout.flush
|
||||
|
||||
unless $?.success?
|
||||
log_lines = ENV["HOMEBREW_FAIL_LOG_LINES"]
|
||||
log_lines ||= "15"
|
||||
|
||||
log.flush
|
||||
Kernel.system "/usr/bin/tail", "-n", "5", logfn unless verbose
|
||||
unless verbose
|
||||
puts "Last #{log_lines} lines from #{logfn}:"
|
||||
Kernel.system "/usr/bin/tail", "-n", log_lines, logfn
|
||||
end
|
||||
log.puts
|
||||
|
||||
require "cmd/config"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user