airbrake 8.0.0.rc.9 → 8.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/airbrake/rack/middleware.rb +5 -60
- data/lib/airbrake/rails.rb +2 -0
- data/lib/airbrake/rails/action_controller_subscriber.rb +65 -0
- data/lib/airbrake/version.rb +1 -1
- data/lib/generators/airbrake_initializer.rb.erb +1 -1
- data/spec/apps/rails/logs/32.log +287 -0
- data/spec/apps/rails/logs/52.log +1 -0
- data/spec/spec_helper.rb +1 -0
- metadata +27 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58dfa88edec41b78188ac561cf0d81082e07eed1
|
4
|
+
data.tar.gz: 63b3966c976c755528967ae46327f6950ee45cb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: babede27bbfa28a9ed3eeb7346c3d47157325a7827d8840b3fc47d9ae41a1b835ff10511ac48f039881e96a2111804537384cd9b78b25ba37cdced559b688b4e
|
7
|
+
data.tar.gz: 81b850c2c9060789f5f69f6974d37a56beb2597dcf282b6ce30d2c48702d4d81987463508849345a196f7edc9078d6c2dbf9046805eaf8d61bd0e3187d4ba7ba
|
@@ -42,7 +42,11 @@ module Airbrake
|
|
42
42
|
end
|
43
43
|
|
44
44
|
return unless defined?(Rails)
|
45
|
-
|
45
|
+
|
46
|
+
ActiveSupport::Notifications.subscribe(
|
47
|
+
'process_action.action_controller',
|
48
|
+
Airbrake::Rails::ActionControllerSubscriber.new(@notifier)
|
49
|
+
)
|
46
50
|
end
|
47
51
|
|
48
52
|
# Rescues any exceptions, sends them to Airbrake and re-raises the
|
@@ -95,65 +99,6 @@ module Airbrake
|
|
95
99
|
env['sinatra.error'] ||
|
96
100
|
env['rack.exception']
|
97
101
|
end
|
98
|
-
|
99
|
-
def subscribe_route_stats_hook
|
100
|
-
ActiveSupport::Notifications.subscribe(
|
101
|
-
'process_action.action_controller'
|
102
|
-
) do |*args|
|
103
|
-
@all_routes ||= find_all_routes
|
104
|
-
|
105
|
-
event = ActiveSupport::Notifications::Event.new(*args)
|
106
|
-
payload = event.payload
|
107
|
-
|
108
|
-
if (route = find_route(payload[:params]))
|
109
|
-
@notifier.notify_request(
|
110
|
-
method: payload[:method],
|
111
|
-
route: route,
|
112
|
-
status_code: find_status_code(payload),
|
113
|
-
start_time: event.time,
|
114
|
-
end_time: Time.new
|
115
|
-
)
|
116
|
-
else
|
117
|
-
@config.logger.info(
|
118
|
-
"#{LOG_LABEL} Rack::Middleware#route_stats_hook: couldn't find " \
|
119
|
-
"a route for path: #{payload[:path]}"
|
120
|
-
)
|
121
|
-
end
|
122
|
-
end
|
123
|
-
end
|
124
|
-
|
125
|
-
def find_route(params)
|
126
|
-
@all_routes.each do |r|
|
127
|
-
if r.defaults[:controller] == params['controller'] &&
|
128
|
-
r.defaults[:action] == params['action']
|
129
|
-
return r.path.spec.to_s
|
130
|
-
end
|
131
|
-
end
|
132
|
-
end
|
133
|
-
|
134
|
-
# Finds all routes that the app supports, including engines.
|
135
|
-
def find_all_routes
|
136
|
-
routes = [*::Rails.application.routes.routes.routes]
|
137
|
-
::Rails::Engine.subclasses.each do |engine|
|
138
|
-
routes.push(*engine.routes.routes.routes)
|
139
|
-
end
|
140
|
-
routes
|
141
|
-
end
|
142
|
-
|
143
|
-
def find_status_code(payload)
|
144
|
-
return payload[:status] if payload[:status]
|
145
|
-
|
146
|
-
if payload[:exception]
|
147
|
-
status = ActionDispatch::ExceptionWrapper.status_code_for_exception(
|
148
|
-
payload[:exception].first
|
149
|
-
)
|
150
|
-
status = 500 if status == 0
|
151
|
-
|
152
|
-
return status
|
153
|
-
end
|
154
|
-
|
155
|
-
0
|
156
|
-
end
|
157
102
|
end
|
158
103
|
end
|
159
104
|
end
|
data/lib/airbrake/rails.rb
CHANGED
@@ -5,6 +5,8 @@ module Airbrake
|
|
5
5
|
# occurring in the application automatically.
|
6
6
|
class Railtie < ::Rails::Railtie
|
7
7
|
initializer('airbrake.middleware') do |app|
|
8
|
+
require 'airbrake/rails/action_controller_subscriber'
|
9
|
+
|
8
10
|
# Since Rails 3.2 the ActionDispatch::DebugExceptions middleware is
|
9
11
|
# responsible for logging exceptions and showing a debugging page in
|
10
12
|
# case the request is local. We want to insert our middleware after
|
@@ -0,0 +1,65 @@
|
|
1
|
+
module Airbrake
|
2
|
+
module Rails
|
3
|
+
# ActionControllerSubscriber sends route stat information, including
|
4
|
+
# performance data.
|
5
|
+
#
|
6
|
+
# @since v8.0.0
|
7
|
+
class ActionControllerSubscriber
|
8
|
+
def initialize(notifier)
|
9
|
+
@notifier = notifier
|
10
|
+
@all_routes = nil
|
11
|
+
end
|
12
|
+
|
13
|
+
def call(*args)
|
14
|
+
@all_routes ||= find_all_routes
|
15
|
+
|
16
|
+
event = ActiveSupport::Notifications::Event.new(*args)
|
17
|
+
payload = event.payload
|
18
|
+
|
19
|
+
return unless (route = find_route(payload[:params]))
|
20
|
+
@notifier.notify_request(
|
21
|
+
method: payload[:method],
|
22
|
+
route: route,
|
23
|
+
status_code: find_status_code(payload),
|
24
|
+
start_time: event.time,
|
25
|
+
end_time: Time.new
|
26
|
+
)
|
27
|
+
end
|
28
|
+
|
29
|
+
private
|
30
|
+
|
31
|
+
def find_route(params)
|
32
|
+
@all_routes.each do |r|
|
33
|
+
if r.defaults[:controller] == params['controller'] &&
|
34
|
+
r.defaults[:action] == params['action']
|
35
|
+
return r.path.spec.to_s
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
# Finds all routes that the app supports, including engines.
|
41
|
+
def find_all_routes
|
42
|
+
routes = [*::Rails.application.routes.routes.routes]
|
43
|
+
::Rails::Engine.subclasses.each do |engine|
|
44
|
+
routes.push(*engine.routes.routes.routes)
|
45
|
+
end
|
46
|
+
routes
|
47
|
+
end
|
48
|
+
|
49
|
+
def find_status_code(payload)
|
50
|
+
return payload[:status] if payload[:status]
|
51
|
+
|
52
|
+
if payload[:exception]
|
53
|
+
status = ActionDispatch::ExceptionWrapper.status_code_for_exception(
|
54
|
+
payload[:exception].first
|
55
|
+
)
|
56
|
+
status = 500 if status == 0
|
57
|
+
|
58
|
+
return status
|
59
|
+
end
|
60
|
+
|
61
|
+
0
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
data/lib/airbrake/version.rb
CHANGED
@@ -47,7 +47,7 @@ Airbrake.configure do |c|
|
|
47
47
|
# unwanted environments such as :test.
|
48
48
|
# NOTE: This option *does not* work if you don't set the 'environment' option.
|
49
49
|
# https://github.com/airbrake/airbrake-ruby#ignore_environments
|
50
|
-
c.ignore_environments = %w
|
50
|
+
c.ignore_environments = %w[test]
|
51
51
|
|
52
52
|
# A list of parameters that should be filtered out of what is sent to
|
53
53
|
# Airbrake. By default, all "password" attributes will have their contents
|
@@ -0,0 +1,287 @@
|
|
1
|
+
# Logfile created on 2019-01-16 20:24:41 +0800 by logger.rb/66358
|
2
|
+
Connecting to database specified by DATABASE_URL
|
3
|
+
[1m[36m (3.6ms)[0m [1mselect sqlite_version(*)[0m
|
4
|
+
[1m[35m (0.4ms)[0m CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
|
5
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar(255), "queue" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
6
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
|
7
|
+
Started GET "/active_record_after_commit" for 127.0.0.1 at 2019-01-16 20:24:41 +0800
|
8
|
+
Processing by DummyController#active_record_after_commit as HTML
|
9
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "Bingo"]]
|
11
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
12
|
+
#<AirbrakeTestError: after_commit>
|
13
|
+
Rendered dummy/active_record_after_commit.html.erb within layouts/application (0.9ms)
|
14
|
+
Completed 200 OK in 33.5ms (Views: 5.8ms | ActiveRecord: 0.3ms)
|
15
|
+
Connecting to database specified by DATABASE_URL
|
16
|
+
[1m[36m (8.7ms)[0m [1mCREATE TABLE "books" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255)) [0m
|
17
|
+
[1m[35m (1.8ms)[0m SELECT name FROM sqlite_master WHERE type = 'table' AND name = "delayed_jobs"
|
18
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "delayed_jobs" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar(255), "queue" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
19
|
+
[1m[35m (0.4ms)[0m SELECT sqlite_version(*)
|
20
|
+
[1m[36m (0.4ms)[0m [1mCREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")[0m
|
21
|
+
Started GET "/active_record_after_commit" for 127.0.0.1 at 2019-01-16 20:41:43 +0800
|
22
|
+
Processing by DummyController#active_record_after_commit as HTML
|
23
|
+
[1m[35m (0.3ms)[0m SELECT name FROM sqlite_master WHERE type = 'table' AND name = "books"
|
24
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "books" ("title") VALUES ('Bingo')[0m
|
25
|
+
#<AirbrakeTestError: after_commit>
|
26
|
+
Rendered dummy/active_record_after_commit.html.erb within layouts/application (7.4ms)
|
27
|
+
Completed 200 OK in 134.8ms (Views: 59.4ms | ActiveRecord: 1.2ms)
|
28
|
+
Connecting to database specified by DATABASE_URL
|
29
|
+
[1m[36m (6.1ms)[0m [1mCREATE TABLE "books" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255)) [0m
|
30
|
+
[1m[35m (1.6ms)[0m SELECT name FROM sqlite_master WHERE type = 'table' AND name = "delayed_jobs"
|
31
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "delayed_jobs" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar(255), "queue" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
32
|
+
[1m[35m (0.3ms)[0m SELECT sqlite_version(*)
|
33
|
+
[1m[36m (0.3ms)[0m [1mCREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")[0m
|
34
|
+
Started GET "/active_record_after_rollback" for 127.0.0.1 at 2019-01-16 20:42:08 +0800
|
35
|
+
Processing by DummyController#active_record_after_rollback as HTML
|
36
|
+
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type = 'table' AND name = "books"
|
37
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "books" ("title") VALUES ('Bango')[0m
|
38
|
+
#<AirbrakeTestError: after_rollback>
|
39
|
+
Rendered dummy/active_record_after_rollback.html.erb within layouts/application (9.1ms)
|
40
|
+
Completed 200 OK in 181.3ms (Views: 61.7ms | ActiveRecord: 0.9ms)
|
41
|
+
Started GET "/active_record_after_commit" for 127.0.0.1 at 2019-01-16 20:42:08 +0800
|
42
|
+
Processing by DummyController#active_record_after_commit as HTML
|
43
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books" ("title") VALUES ('Bingo')
|
44
|
+
#<AirbrakeTestError: after_commit>
|
45
|
+
Rendered dummy/active_record_after_commit.html.erb within layouts/application (2.3ms)
|
46
|
+
Completed 200 OK in 26.3ms (Views: 7.1ms | ActiveRecord: 0.4ms)
|
47
|
+
Started GET "/" for 127.0.0.1 at 2019-01-16 20:42:09 +0800
|
48
|
+
Processing by DummyController#index as HTML
|
49
|
+
Rendered dummy/index.html.erb within layouts/application (1.6ms)
|
50
|
+
Completed 200 OK in 9.3ms (Views: 8.4ms | ActiveRecord: 0.0ms)
|
51
|
+
Started GET "/crash" for 127.0.0.1 at 2019-01-16 20:42:09 +0800
|
52
|
+
Processing by DummyController#crash as HTML
|
53
|
+
Completed 500 Internal Server Error in 2.5ms
|
54
|
+
|
55
|
+
AirbrakeTestError (AirbrakeTestError):
|
56
|
+
lib/airbrake/rack/middleware.rb:58:in `call'
|
57
|
+
|
58
|
+
|
59
|
+
Started GET "/crash" for 127.0.0.1 at 2019-01-16 20:42:09 +0800
|
60
|
+
Processing by DummyController#crash as HTML
|
61
|
+
Completed 500 Internal Server Error in 1.8ms
|
62
|
+
|
63
|
+
AirbrakeTestError (AirbrakeTestError):
|
64
|
+
lib/airbrake/rack/middleware.rb:58:in `call'
|
65
|
+
|
66
|
+
|
67
|
+
Started GET "/crash" for 127.0.0.1 at 2019-01-16 20:42:09 +0800
|
68
|
+
Processing by DummyController#crash as HTML
|
69
|
+
Completed 500 Internal Server Error in 1.7ms
|
70
|
+
|
71
|
+
AirbrakeTestError (AirbrakeTestError):
|
72
|
+
lib/airbrake/rack/middleware.rb:58:in `call'
|
73
|
+
|
74
|
+
|
75
|
+
Started GET "/crash" for 127.0.0.1 at 2019-01-16 20:42:09 +0800
|
76
|
+
Processing by DummyController#crash as HTML
|
77
|
+
Completed 500 Internal Server Error in 2.0ms
|
78
|
+
|
79
|
+
AirbrakeTestError (AirbrakeTestError):
|
80
|
+
lib/airbrake/rack/middleware.rb:58:in `call'
|
81
|
+
|
82
|
+
|
83
|
+
Started GET "/crash" for 127.0.0.1 at 2019-01-16 20:42:09 +0800
|
84
|
+
Processing by DummyController#crash as HTML
|
85
|
+
Completed 500 Internal Server Error in 2.8ms
|
86
|
+
|
87
|
+
AirbrakeTestError (AirbrakeTestError):
|
88
|
+
lib/airbrake/rack/middleware.rb:58:in `call'
|
89
|
+
|
90
|
+
|
91
|
+
Started GET "/crash" for 127.0.0.1 at 2019-01-16 20:42:09 +0800
|
92
|
+
Processing by DummyController#crash as HTML
|
93
|
+
Completed 500 Internal Server Error in 1.8ms
|
94
|
+
|
95
|
+
AirbrakeTestError (AirbrakeTestError):
|
96
|
+
lib/airbrake/rack/middleware.rb:58:in `call'
|
97
|
+
|
98
|
+
|
99
|
+
Started GET "/crash" for 127.0.0.1 at 2019-01-16 20:42:09 +0800
|
100
|
+
Processing by DummyController#crash as HTML
|
101
|
+
Completed 500 Internal Server Error in 1.8ms
|
102
|
+
|
103
|
+
AirbrakeTestError (AirbrakeTestError):
|
104
|
+
lib/airbrake/rack/middleware.rb:58:in `call'
|
105
|
+
|
106
|
+
|
107
|
+
Started GET "/crash" for 127.0.0.1 at 2019-01-16 20:42:10 +0800
|
108
|
+
Processing by DummyController#crash as HTML
|
109
|
+
Completed 500 Internal Server Error in 1.6ms
|
110
|
+
|
111
|
+
AirbrakeTestError (AirbrakeTestError):
|
112
|
+
lib/airbrake/rack/middleware.rb:58:in `call'
|
113
|
+
|
114
|
+
|
115
|
+
Started GET "/crash" for 127.0.0.1 at 2019-01-16 20:42:10 +0800
|
116
|
+
Processing by DummyController#crash as HTML
|
117
|
+
Completed 500 Internal Server Error in 1.6ms
|
118
|
+
|
119
|
+
AirbrakeTestError (AirbrakeTestError):
|
120
|
+
lib/airbrake/rack/middleware.rb:58:in `call'
|
121
|
+
|
122
|
+
|
123
|
+
Started GET "/crash" for 127.0.0.1 at 2019-01-16 20:42:10 +0800
|
124
|
+
Processing by DummyController#crash as HTML
|
125
|
+
Completed 500 Internal Server Error in 1.7ms
|
126
|
+
|
127
|
+
AirbrakeTestError (AirbrakeTestError):
|
128
|
+
lib/airbrake/rack/middleware.rb:58:in `call'
|
129
|
+
|
130
|
+
|
131
|
+
Started GET "/crash" for 127.0.0.1 at 2019-01-16 20:42:10 +0800
|
132
|
+
Processing by DummyController#crash as HTML
|
133
|
+
Completed 500 Internal Server Error in 2.5ms
|
134
|
+
|
135
|
+
AirbrakeTestError (AirbrakeTestError):
|
136
|
+
lib/airbrake/rack/middleware.rb:58:in `call'
|
137
|
+
|
138
|
+
|
139
|
+
Started HEAD "/crash" for 127.0.0.1 at 2019-01-16 20:42:13 +0800
|
140
|
+
Processing by DummyController#crash as HTML
|
141
|
+
Completed 0 in 1.6ms
|
142
|
+
|
143
|
+
AirbrakeTestError (AirbrakeTestError):
|
144
|
+
lib/airbrake/rack/middleware.rb:58:in `call'
|
145
|
+
|
146
|
+
|
147
|
+
Started GET "/delayed_job" for 127.0.0.1 at 2019-01-16 20:42:15 +0800
|
148
|
+
Processing by DummyController#delayed_job as HTML
|
149
|
+
[1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type = 'table' AND name = "delayed_jobs"[0m
|
150
|
+
Completed 500 Internal Server Error in 77.9ms
|
151
|
+
|
152
|
+
AirbrakeTestError (delayed_job error):
|
153
|
+
lib/airbrake/delayed_job.rb:10:in `block in Airbrake'
|
154
|
+
lib/airbrake/rack/middleware.rb:58:in `call'
|
155
|
+
|
156
|
+
|
157
|
+
Started GET "/delayed_job" for 127.0.0.1 at 2019-01-16 20:42:19 +0800
|
158
|
+
Processing by DummyController#delayed_job as HTML
|
159
|
+
Completed 500 Internal Server Error in 5.2ms
|
160
|
+
|
161
|
+
AirbrakeTestError (delayed_job error):
|
162
|
+
lib/airbrake/delayed_job.rb:10:in `block in Airbrake'
|
163
|
+
lib/airbrake/rack/middleware.rb:58:in `call'
|
164
|
+
|
165
|
+
|
166
|
+
Started GET "/notify_airbrake_sync_helper?foo=bar" for 127.0.0.1 at 2019-01-16 20:42:21 +0800
|
167
|
+
Processing by DummyController#notify_airbrake_sync_helper as HTML
|
168
|
+
Parameters: {"foo"=>"bar"}
|
169
|
+
Rendered dummy/notify_airbrake_sync_helper.html.erb within layouts/application (1.8ms)
|
170
|
+
Completed 200 OK in 26.0ms (Views: 6.8ms | ActiveRecord: 0.0ms)
|
171
|
+
Started GET "/notify_airbrake_sync_helper?foo=bar" for 127.0.0.1 at 2019-01-16 20:42:21 +0800
|
172
|
+
Processing by DummyController#notify_airbrake_sync_helper as HTML
|
173
|
+
Parameters: {"foo"=>"bar"}
|
174
|
+
Rendered dummy/notify_airbrake_sync_helper.html.erb within layouts/application (2.0ms)
|
175
|
+
Completed 200 OK in 23.0ms (Views: 6.2ms | ActiveRecord: 0.0ms)
|
176
|
+
Started GET "/notify_airbrake_sync_helper?foo=bar" for 127.0.0.1 at 2019-01-16 20:42:21 +0800
|
177
|
+
Processing by DummyController#notify_airbrake_sync_helper as HTML
|
178
|
+
Parameters: {"foo"=>"bar"}
|
179
|
+
Rendered dummy/notify_airbrake_sync_helper.html.erb within layouts/application (2.0ms)
|
180
|
+
Completed 200 OK in 26.2ms (Views: 5.0ms | ActiveRecord: 0.0ms)
|
181
|
+
Started GET "/notify_airbrake_sync_helper?foo=bar" for 127.0.0.1 at 2019-01-16 20:42:21 +0800
|
182
|
+
Processing by DummyController#notify_airbrake_sync_helper as HTML
|
183
|
+
Parameters: {"foo"=>"bar"}
|
184
|
+
Rendered dummy/notify_airbrake_sync_helper.html.erb within layouts/application (1.0ms)
|
185
|
+
Completed 200 OK in 18.5ms (Views: 4.2ms | ActiveRecord: 0.0ms)
|
186
|
+
Started GET "/notify_airbrake_sync_helper?foo=bar" for 127.0.0.1 at 2019-01-16 20:42:21 +0800
|
187
|
+
Processing by DummyController#notify_airbrake_sync_helper as HTML
|
188
|
+
Parameters: {"foo"=>"bar"}
|
189
|
+
Rendered dummy/notify_airbrake_sync_helper.html.erb within layouts/application (1.0ms)
|
190
|
+
Completed 200 OK in 20.3ms (Views: 4.6ms | ActiveRecord: 0.0ms)
|
191
|
+
Started GET "/notify_airbrake_sync_helper?foo=bar" for 127.0.0.1 at 2019-01-16 20:42:21 +0800
|
192
|
+
Processing by DummyController#notify_airbrake_sync_helper as HTML
|
193
|
+
Parameters: {"foo"=>"bar"}
|
194
|
+
Rendered dummy/notify_airbrake_sync_helper.html.erb within layouts/application (2.0ms)
|
195
|
+
Completed 200 OK in 25.2ms (Views: 5.1ms | ActiveRecord: 0.0ms)
|
196
|
+
Started GET "/notify_airbrake_helper?foo=bar" for 127.0.0.1 at 2019-01-16 20:42:21 +0800
|
197
|
+
Processing by DummyController#notify_airbrake_helper as HTML
|
198
|
+
Parameters: {"foo"=>"bar"}
|
199
|
+
Rendered dummy/notify_airbrake_helper.html.erb within layouts/application (1.5ms)
|
200
|
+
Completed 200 OK in 11.0ms (Views: 5.6ms | ActiveRecord: 0.0ms)
|
201
|
+
Started GET "/notify_airbrake_helper?foo=bar" for 127.0.0.1 at 2019-01-16 20:42:21 +0800
|
202
|
+
Processing by DummyController#notify_airbrake_helper as HTML
|
203
|
+
Parameters: {"foo"=>"bar"}
|
204
|
+
Rendered dummy/notify_airbrake_helper.html.erb within layouts/application (1.4ms)
|
205
|
+
Completed 200 OK in 13.1ms (Views: 5.3ms | ActiveRecord: 0.0ms)
|
206
|
+
Started GET "/notify_airbrake_helper?foo=bar" for 127.0.0.1 at 2019-01-16 20:42:21 +0800
|
207
|
+
Processing by DummyController#notify_airbrake_helper as HTML
|
208
|
+
Parameters: {"foo"=>"bar"}
|
209
|
+
Rendered dummy/notify_airbrake_helper.html.erb within layouts/application (1.3ms)
|
210
|
+
Completed 200 OK in 11.2ms (Views: 4.5ms | ActiveRecord: 0.0ms)
|
211
|
+
Started GET "/notify_airbrake_helper?foo=bar" for 127.0.0.1 at 2019-01-16 20:42:21 +0800
|
212
|
+
Processing by DummyController#notify_airbrake_helper as HTML
|
213
|
+
Parameters: {"foo"=>"bar"}
|
214
|
+
Rendered dummy/notify_airbrake_helper.html.erb within layouts/application (1.6ms)
|
215
|
+
Completed 200 OK in 14.0ms (Views: 5.8ms | ActiveRecord: 0.0ms)
|
216
|
+
Started GET "/notify_airbrake_helper?foo=bar" for 127.0.0.1 at 2019-01-16 20:42:21 +0800
|
217
|
+
Processing by DummyController#notify_airbrake_helper as HTML
|
218
|
+
Parameters: {"foo"=>"bar"}
|
219
|
+
Rendered dummy/notify_airbrake_helper.html.erb within layouts/application (2.6ms)
|
220
|
+
Completed 200 OK in 17.5ms (Views: 6.9ms | ActiveRecord: 0.0ms)
|
221
|
+
Started GET "/notify_airbrake_helper?foo=bar" for 127.0.0.1 at 2019-01-16 20:42:21 +0800
|
222
|
+
Processing by DummyController#notify_airbrake_helper as HTML
|
223
|
+
Parameters: {"foo"=>"bar"}
|
224
|
+
Rendered dummy/notify_airbrake_helper.html.erb within layouts/application (1.1ms)
|
225
|
+
Completed 200 OK in 10.5ms (Views: 4.5ms | ActiveRecord: 0.0ms)
|
226
|
+
Started GET "/crash?foo=bar" for 127.0.0.1 at 2019-01-16 20:42:22 +0800
|
227
|
+
Processing by DummyController#crash as HTML
|
228
|
+
Parameters: {"foo"=>"bar"}
|
229
|
+
Completed 500 Internal Server Error in 1.9ms
|
230
|
+
|
231
|
+
AirbrakeTestError (AirbrakeTestError):
|
232
|
+
lib/airbrake/rack/middleware.rb:58:in `call'
|
233
|
+
|
234
|
+
|
235
|
+
Started GET "/crash?foo=bar" for 127.0.0.1 at 2019-01-16 20:42:22 +0800
|
236
|
+
Processing by DummyController#crash as HTML
|
237
|
+
Parameters: {"foo"=>"bar"}
|
238
|
+
Completed 500 Internal Server Error in 1.7ms
|
239
|
+
|
240
|
+
AirbrakeTestError (AirbrakeTestError):
|
241
|
+
lib/airbrake/rack/middleware.rb:58:in `call'
|
242
|
+
|
243
|
+
|
244
|
+
Started GET "/crash?foo=bar" for 127.0.0.1 at 2019-01-16 20:42:22 +0800
|
245
|
+
Processing by DummyController#crash as HTML
|
246
|
+
Parameters: {"foo"=>"bar"}
|
247
|
+
Completed 500 Internal Server Error in 2.4ms
|
248
|
+
|
249
|
+
AirbrakeTestError (AirbrakeTestError):
|
250
|
+
lib/airbrake/rack/middleware.rb:58:in `call'
|
251
|
+
|
252
|
+
|
253
|
+
Started GET "/crash?foo=bar" for 127.0.0.1 at 2019-01-16 20:42:22 +0800
|
254
|
+
Processing by DummyController#crash as HTML
|
255
|
+
Parameters: {"foo"=>"bar"}
|
256
|
+
Completed 500 Internal Server Error in 1.6ms
|
257
|
+
|
258
|
+
AirbrakeTestError (AirbrakeTestError):
|
259
|
+
lib/airbrake/rack/middleware.rb:58:in `call'
|
260
|
+
|
261
|
+
|
262
|
+
Started GET "/crash?foo=bar" for 127.0.0.1 at 2019-01-16 20:42:22 +0800
|
263
|
+
Processing by DummyController#crash as HTML
|
264
|
+
Parameters: {"foo"=>"bar"}
|
265
|
+
Completed 500 Internal Server Error in 1.6ms
|
266
|
+
|
267
|
+
AirbrakeTestError (AirbrakeTestError):
|
268
|
+
lib/airbrake/rack/middleware.rb:58:in `call'
|
269
|
+
|
270
|
+
|
271
|
+
Started GET "/crash?foo=bar" for 127.0.0.1 at 2019-01-16 20:42:22 +0800
|
272
|
+
Processing by DummyController#crash as HTML
|
273
|
+
Parameters: {"foo"=>"bar"}
|
274
|
+
Completed 500 Internal Server Error in 2.2ms
|
275
|
+
|
276
|
+
AirbrakeTestError (AirbrakeTestError):
|
277
|
+
lib/airbrake/rack/middleware.rb:58:in `call'
|
278
|
+
|
279
|
+
|
280
|
+
Started GET "/resque" for 127.0.0.1 at 2019-01-16 20:42:22 +0800
|
281
|
+
Processing by DummyController#resque as HTML
|
282
|
+
Rendered dummy/resque.html.erb within layouts/application (1.4ms)
|
283
|
+
Completed 200 OK in 12.8ms (Views: 6.5ms | ActiveRecord: 0.0ms)
|
284
|
+
Started GET "/resque" for 127.0.0.1 at 2019-01-16 20:42:22 +0800
|
285
|
+
Processing by DummyController#resque as HTML
|
286
|
+
Rendered dummy/resque.html.erb within layouts/application (1.0ms)
|
287
|
+
Completed 200 OK in 18.2ms (Views: 4.9ms | ActiveRecord: 0.0ms)
|
@@ -0,0 +1 @@
|
|
1
|
+
# Logfile created on 2018-12-06 02:05:28 +0800 by logger.rb/56815
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: airbrake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.0.0
|
4
|
+
version: 8.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Airbrake Technologies, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: airbrake-ruby
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.0
|
19
|
+
version: '3.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.0
|
26
|
+
version: '3.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -198,6 +198,20 @@ dependencies:
|
|
198
198
|
- - "<"
|
199
199
|
- !ruby/object:Gem::Version
|
200
200
|
version: '3.0'
|
201
|
+
- !ruby/object:Gem::Dependency
|
202
|
+
name: nokogiri
|
203
|
+
requirement: !ruby/object:Gem::Requirement
|
204
|
+
requirements:
|
205
|
+
- - '='
|
206
|
+
- !ruby/object:Gem::Version
|
207
|
+
version: 1.9.1
|
208
|
+
type: :development
|
209
|
+
prerelease: false
|
210
|
+
version_requirements: !ruby/object:Gem::Requirement
|
211
|
+
requirements:
|
212
|
+
- - '='
|
213
|
+
- !ruby/object:Gem::Version
|
214
|
+
version: 1.9.1
|
201
215
|
- !ruby/object:Gem::Dependency
|
202
216
|
name: sidekiq
|
203
217
|
requirement: !ruby/object:Gem::Requirement
|
@@ -245,6 +259,7 @@ files:
|
|
245
259
|
- lib/airbrake/rack/user.rb
|
246
260
|
- lib/airbrake/rails.rb
|
247
261
|
- lib/airbrake/rails/action_controller.rb
|
262
|
+
- lib/airbrake/rails/action_controller_subscriber.rb
|
248
263
|
- lib/airbrake/rails/active_job.rb
|
249
264
|
- lib/airbrake/rails/active_record.rb
|
250
265
|
- lib/airbrake/rake.rb
|
@@ -260,8 +275,10 @@ files:
|
|
260
275
|
- spec/apps/rack/dummy_app.rb
|
261
276
|
- spec/apps/rails/dummy_app.rb
|
262
277
|
- spec/apps/rails/dummy_task.rake
|
278
|
+
- spec/apps/rails/logs/32.log
|
263
279
|
- spec/apps/rails/logs/42.log
|
264
280
|
- spec/apps/rails/logs/51.log
|
281
|
+
- spec/apps/rails/logs/52.log
|
265
282
|
- spec/apps/sinatra/composite_app/sinatra_app1.rb
|
266
283
|
- spec/apps/sinatra/composite_app/sinatra_app2.rb
|
267
284
|
- spec/apps/sinatra/dummy_app.rb
|
@@ -300,9 +317,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
300
317
|
version: '2.1'
|
301
318
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
302
319
|
requirements:
|
303
|
-
- - "
|
320
|
+
- - ">="
|
304
321
|
- !ruby/object:Gem::Version
|
305
|
-
version:
|
322
|
+
version: '0'
|
306
323
|
requirements: []
|
307
324
|
rubyforge_project:
|
308
325
|
rubygems_version: 2.6.13
|
@@ -339,3 +356,5 @@ test_files:
|
|
339
356
|
- spec/apps/rails/dummy_app.rb
|
340
357
|
- spec/apps/rails/logs/42.log
|
341
358
|
- spec/apps/rails/logs/51.log
|
359
|
+
- spec/apps/rails/logs/52.log
|
360
|
+
- spec/apps/rails/logs/32.log
|