lib/logstasher/log_subscriber.rb in logstasher-0.3.0 vs lib/logstasher/log_subscriber.rb in logstasher-0.3.1

- old
+ new

@@ -77,11 +77,12 @@ # Monkey patching to enable exception logging def extract_exception(payload) if payload[:exception] exception, message = payload[:exception] + status = ActionDispatch::ExceptionWrapper.status_code_for_exception(exception) message = "#{exception}\n#{message}\n#{($!.backtrace.join("\n"))}" - { :status => 500, :error => message } + { :status => status, :error => message } else {} end end