lib/gorgon/crash_reporter.rb in gorgon-0.3.1 vs lib/gorgon/crash_reporter.rb in gorgon-0.3.2
- old
+ new
@@ -1,10 +1,10 @@
module CrashReporter
OUTPUT_LINES_TO_REPORT = 70
def report_crash reply_exchange, info
stdout = `tail -n #{OUTPUT_LINES_TO_REPORT} #{info[:out_file]}`
- stderr = `tail -n #{OUTPUT_LINES_TO_REPORT} #{info[:err_file]}` + \
+ stderr = `cat #{info[:err_file]}` + \
info[:footer_text]
send_crash_message reply_exchange, stdout, stderr
"#{stdout}\n#{stderr}"