failbot_rails 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/failbot_rails.gemspec +1 -1
- data/lib/failbot_rails.rb +3 -15
- metadata +1 -1
data/failbot_rails.gemspec
CHANGED
data/lib/failbot_rails.rb
CHANGED
@@ -63,23 +63,11 @@ module FailbotRails
|
|
63
63
|
class Middleware < ::Failbot::Rescuer
|
64
64
|
def initialize(app)
|
65
65
|
@app = app
|
66
|
+
@other = {}
|
66
67
|
end
|
67
68
|
|
68
|
-
def
|
69
|
-
|
70
|
-
@app.call(env)
|
71
|
-
rescue Exception
|
72
|
-
context = {
|
73
|
-
:method => request.request_method,
|
74
|
-
:url => request.url,
|
75
|
-
:user_agent => request.env["HTTP_USER_AGENT"],
|
76
|
-
:params => request.params,
|
77
|
-
:session => (request.session.to_hash rescue nil),
|
78
|
-
:referrer => request.referrer,
|
79
|
-
:remote_ip => request.ip,
|
80
|
-
}
|
81
|
-
Failbot.report($!, ::FailbotRails._failbot_safe_context(context))
|
82
|
-
raise
|
69
|
+
def self.context(env)
|
70
|
+
::FailbotRails._failbot_safe_context(super)
|
83
71
|
end
|
84
72
|
end
|
85
73
|
|