lib/scout/server.rb in scout-2.0.5 vs lib/scout/server.rb in scout-2.0.6
- old
+ new
@@ -114,10 +114,10 @@
rescue Timeout::Error
error "Plugin took too long to run."
return
rescue Exception
raise if $!.is_a? SystemExit
- error "Plugin failed to run: #{$!.backtrace}"
+ error "Plugin failed to run: #{$!.class}: #{$!}\n#{$!.backtrace.join("\n")}"
end
info "Plugin completed its run."
# handle single report or array of reports
send_report(data[:report], plugin[:plugin_id]) if data[:report]