airbrake 8.2.0 → 8.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/airbrake/rails/active_record_subscriber.rb +1 -1
- data/lib/airbrake/version.rb +1 -1
- data/spec/apps/rails/logs/32.log +277 -0
- data/spec/integration/rails/rails_spec.rb +18 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: acdecef7bc49042642b6e456017983a16a1415aa
|
4
|
+
data.tar.gz: 95ba525e475d22292a1fe98d32ea25132d0084b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3eb63dbf4e93a813a7295077252b1f29d08a65741c2c34fa46d4c4806d21ddf415f628d5ae8c5ef7c17e7ea26face83331dc2281ab6751de98fbb93d25c3bd98
|
7
|
+
data.tar.gz: a764f7e4c6c494b1f006ea17db00d5f76c074a4f988a9636bf3411a0f6e27d4c4a49d78c63007b5432f5f3391bd2a0cfa996674e8ba9856f6d1f18f2657f9c7f
|
@@ -31,7 +31,7 @@ module Airbrake
|
|
31
31
|
exception = StandardError.new.tap do |ex|
|
32
32
|
ex.set_backtrace(::Rails.backtrace_cleaner.clean(Kernel.caller).first(1))
|
33
33
|
end
|
34
|
-
Airbrake::Backtrace.parse(exception).first
|
34
|
+
Airbrake::Backtrace.parse(exception).first || {}
|
35
35
|
end
|
36
36
|
end
|
37
37
|
end
|
data/lib/airbrake/version.rb
CHANGED
data/spec/apps/rails/logs/32.log
CHANGED
@@ -1025,3 +1025,280 @@ AirbrakeTestError (AirbrakeTestError):
|
|
1025
1025
|
lib/airbrake/rack/middleware.rb:40:in `call'
|
1026
1026
|
|
1027
1027
|
|
1028
|
+
Connecting to database specified by DATABASE_URL
|
1029
|
+
[1m[36m (3.1ms)[0m [1mselect sqlite_version(*)[0m
|
1030
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
|
1031
|
+
[1m[36m (0.2ms)[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
|
1032
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
|
1033
|
+
Started GET "/crash" for 127.0.0.1 at 2019-03-04 16:27:31 +0200
|
1034
|
+
Processing by DummyController#crash as HTML
|
1035
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1036
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "book"]]
|
1037
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
1038
|
+
#<AirbrakeTestError: after_commit>
|
1039
|
+
Completed 500 Internal Server Error in 26.1ms
|
1040
|
+
|
1041
|
+
AirbrakeTestError (AirbrakeTestError):
|
1042
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
1043
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
1044
|
+
|
1045
|
+
|
1046
|
+
Started HEAD "/crash" for 127.0.0.1 at 2019-03-04 16:27:33 +0200
|
1047
|
+
Processing by DummyController#crash as HTML
|
1048
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1049
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "book"]]
|
1050
|
+
[1m[35m (0.0ms)[0m commit transaction
|
1051
|
+
#<AirbrakeTestError: after_commit>
|
1052
|
+
Completed 0 in 6.0ms
|
1053
|
+
|
1054
|
+
AirbrakeTestError (AirbrakeTestError):
|
1055
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
1056
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
1057
|
+
|
1058
|
+
|
1059
|
+
Started GET "/crash" for 127.0.0.1 at 2019-03-04 16:27:33 +0200
|
1060
|
+
Processing by DummyController#crash as HTML
|
1061
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1062
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "book"]]
|
1063
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
1064
|
+
#<AirbrakeTestError: after_commit>
|
1065
|
+
Completed 500 Internal Server Error in 5.0ms
|
1066
|
+
|
1067
|
+
AirbrakeTestError (AirbrakeTestError):
|
1068
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
1069
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
1070
|
+
|
1071
|
+
|
1072
|
+
Started GET "/notify_airbrake_sync_helper?foo=bar" for 127.0.0.1 at 2019-03-04 16:27:33 +0200
|
1073
|
+
Processing by DummyController#notify_airbrake_sync_helper as HTML
|
1074
|
+
Parameters: {"foo"=>"bar"}
|
1075
|
+
Rendered dummy/notify_airbrake_sync_helper.html.erb within layouts/application (1.0ms)
|
1076
|
+
Completed 200 OK in 21.6ms (Views: 6.7ms | ActiveRecord: 0.0ms)
|
1077
|
+
Started GET "/notify_airbrake_sync_helper?foo=bar" for 127.0.0.1 at 2019-03-04 16:27:35 +0200
|
1078
|
+
Processing by DummyController#notify_airbrake_sync_helper as HTML
|
1079
|
+
Parameters: {"foo"=>"bar"}
|
1080
|
+
Rendered dummy/notify_airbrake_sync_helper.html.erb within layouts/application (0.2ms)
|
1081
|
+
Completed 200 OK in 16.2ms (Views: 1.0ms | ActiveRecord: 0.0ms)
|
1082
|
+
Started GET "/notify_airbrake_sync_helper?foo=bar" for 127.0.0.1 at 2019-03-04 16:27:37 +0200
|
1083
|
+
Processing by DummyController#notify_airbrake_sync_helper as HTML
|
1084
|
+
Parameters: {"foo"=>"bar"}
|
1085
|
+
Rendered dummy/notify_airbrake_sync_helper.html.erb within layouts/application (0.2ms)
|
1086
|
+
Completed 200 OK in 16.9ms (Views: 1.0ms | ActiveRecord: 0.0ms)
|
1087
|
+
Connecting to database specified by DATABASE_URL
|
1088
|
+
[1m[36m (0.9ms)[0m [1mselect sqlite_version(*)[0m
|
1089
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
|
1090
|
+
[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
|
1091
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
|
1092
|
+
Started GET "/crash" for 127.0.0.1 at 2019-03-04 16:27:44 +0200
|
1093
|
+
Processing by DummyController#crash as HTML
|
1094
|
+
RSpec::Mocks::MockExpectationError: Airbrake received :notify_query with unexpected arguments
|
1095
|
+
expected: (hash_including(:route=>"/crash(.:format)", :method=>"GET", :func=>"tap", :file=>"lib/airbrake/rails/active_record_subscriber.rb", :line=>"anything"))
|
1096
|
+
got: ({:end_time=>2019-03-04 16:27:44.259868000 +0200, :file=>nil, :func=>nil, :line=>nil, :method=>"GET", ...able_info(\"books\")", :route=>"/crash(.:format)", :start_time=>2019-03-04 16:27:44.259809000 +0200})
|
1097
|
+
Diff:[0m
|
1098
|
+
[0m[34m@@ -1,2 +1,9 @@
|
1099
|
+
[0m[31m-["hash_including(:route=>\"/crash(.:format)\", :method=>\"GET\", :func=>\"tap\", :file=>\"lib/airbrake/rails/active_record_subscriber.rb\", :line=>\"anything\")"]
|
1100
|
+
[0m[32m+[{:end_time=>2019-03-04 16:27:44.259868000 +0200,
|
1101
|
+
[0m[32m+ :file=>nil,
|
1102
|
+
[0m[32m+ :func=>nil,
|
1103
|
+
[0m[32m+ :line=>nil,
|
1104
|
+
[0m[32m+ :method=>"GET",
|
1105
|
+
[0m[32m+ :query=>"PRAGMA table_info(\"books\")",
|
1106
|
+
[0m[32m+ :route=>"/crash(.:format)",
|
1107
|
+
[0m[32m+ :start_time=>2019-03-04 16:27:44.259809000 +0200}]
|
1108
|
+
[0m: PRAGMA table_info("books")
|
1109
|
+
Completed 500 Internal Server Error in 17.0ms
|
1110
|
+
|
1111
|
+
ActiveRecord::StatementInvalid (RSpec::Mocks::MockExpectationError: Airbrake received :notify_query with unexpected arguments
|
1112
|
+
expected: (hash_including(:route=>"/crash(.:format)", :method=>"GET", :func=>"tap", :file=>"lib/airbrake/rails/active_record_subscriber.rb", :line=>"anything"))
|
1113
|
+
got: ({:end_time=>2019-03-04 16:27:44.259868000 +0200, :file=>nil, :func=>nil, :line=>nil, :method=>"GET", ...able_info(\"books\")", :route=>"/crash(.:format)", :start_time=>2019-03-04 16:27:44.259809000 +0200})
|
1114
|
+
Diff:[0m
|
1115
|
+
[0m[34m@@ -1,2 +1,9 @@
|
1116
|
+
[0m[31m-["hash_including(:route=>\"/crash(.:format)\", :method=>\"GET\", :func=>\"tap\", :file=>\"lib/airbrake/rails/active_record_subscriber.rb\", :line=>\"anything\")"]
|
1117
|
+
[0m[32m+[{:end_time=>2019-03-04 16:27:44.259868000 +0200,
|
1118
|
+
[0m[32m+ :file=>nil,
|
1119
|
+
[0m[32m+ :func=>nil,
|
1120
|
+
[0m[32m+ :line=>nil,
|
1121
|
+
[0m[32m+ :method=>"GET",
|
1122
|
+
[0m[32m+ :query=>"PRAGMA table_info(\"books\")",
|
1123
|
+
[0m[32m+ :route=>"/crash(.:format)",
|
1124
|
+
[0m[32m+ :start_time=>2019-03-04 16:27:44.259809000 +0200}]
|
1125
|
+
[0m: PRAGMA table_info("books")):
|
1126
|
+
lib/airbrake/rails/active_record_subscriber.rb:15:in `block in call'
|
1127
|
+
lib/airbrake/rails/active_record_subscriber.rb:14:in `each'
|
1128
|
+
lib/airbrake/rails/active_record_subscriber.rb:14:in `call'
|
1129
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
1130
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
1131
|
+
|
1132
|
+
|
1133
|
+
Connecting to database specified by DATABASE_URL
|
1134
|
+
[1m[36m (0.9ms)[0m [1mselect sqlite_version(*)[0m
|
1135
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
|
1136
|
+
[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
|
1137
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
|
1138
|
+
Started GET "/crash" for 127.0.0.1 at 2019-03-04 16:28:03 +0200
|
1139
|
+
Processing by DummyController#crash as HTML
|
1140
|
+
RSpec::Mocks::MockExpectationError: Airbrake received :notify_query with unexpected arguments
|
1141
|
+
expected: (hash_including(:route=>"/crash(.:format)", :method=>"GET", :func=>"tap", :file=>"lib/airbrake/rails/active_record_subscriber.rb", :line=>"anything"))
|
1142
|
+
got: ({:end_time=>2019-03-04 16:28:03.119043000 +0200, :file=>nil, :func=>nil, :line=>nil, :method=>"GET", ...able_info(\"books\")", :route=>"/crash(.:format)", :start_time=>2019-03-04 16:28:03.118980000 +0200})
|
1143
|
+
Diff:[0m
|
1144
|
+
[0m[34m@@ -1,2 +1,9 @@
|
1145
|
+
[0m[31m-["hash_including(:route=>\"/crash(.:format)\", :method=>\"GET\", :func=>\"tap\", :file=>\"lib/airbrake/rails/active_record_subscriber.rb\", :line=>\"anything\")"]
|
1146
|
+
[0m[32m+[{:end_time=>2019-03-04 16:28:03.119043000 +0200,
|
1147
|
+
[0m[32m+ :file=>nil,
|
1148
|
+
[0m[32m+ :func=>nil,
|
1149
|
+
[0m[32m+ :line=>nil,
|
1150
|
+
[0m[32m+ :method=>"GET",
|
1151
|
+
[0m[32m+ :query=>"PRAGMA table_info(\"books\")",
|
1152
|
+
[0m[32m+ :route=>"/crash(.:format)",
|
1153
|
+
[0m[32m+ :start_time=>2019-03-04 16:28:03.118980000 +0200}]
|
1154
|
+
[0m: PRAGMA table_info("books")
|
1155
|
+
Completed 500 Internal Server Error in 2762.8ms
|
1156
|
+
|
1157
|
+
ActiveRecord::StatementInvalid (RSpec::Mocks::MockExpectationError: Airbrake received :notify_query with unexpected arguments
|
1158
|
+
expected: (hash_including(:route=>"/crash(.:format)", :method=>"GET", :func=>"tap", :file=>"lib/airbrake/rails/active_record_subscriber.rb", :line=>"anything"))
|
1159
|
+
got: ({:end_time=>2019-03-04 16:28:03.119043000 +0200, :file=>nil, :func=>nil, :line=>nil, :method=>"GET", ...able_info(\"books\")", :route=>"/crash(.:format)", :start_time=>2019-03-04 16:28:03.118980000 +0200})
|
1160
|
+
Diff:[0m
|
1161
|
+
[0m[34m@@ -1,2 +1,9 @@
|
1162
|
+
[0m[31m-["hash_including(:route=>\"/crash(.:format)\", :method=>\"GET\", :func=>\"tap\", :file=>\"lib/airbrake/rails/active_record_subscriber.rb\", :line=>\"anything\")"]
|
1163
|
+
[0m[32m+[{:end_time=>2019-03-04 16:28:03.119043000 +0200,
|
1164
|
+
[0m[32m+ :file=>nil,
|
1165
|
+
[0m[32m+ :func=>nil,
|
1166
|
+
[0m[32m+ :line=>nil,
|
1167
|
+
[0m[32m+ :method=>"GET",
|
1168
|
+
[0m[32m+ :query=>"PRAGMA table_info(\"books\")",
|
1169
|
+
[0m[32m+ :route=>"/crash(.:format)",
|
1170
|
+
[0m[32m+ :start_time=>2019-03-04 16:28:03.118980000 +0200}]
|
1171
|
+
[0m: PRAGMA table_info("books")):
|
1172
|
+
lib/airbrake/rails/active_record_subscriber.rb:15:in `block in call'
|
1173
|
+
lib/airbrake/rails/active_record_subscriber.rb:14:in `each'
|
1174
|
+
lib/airbrake/rails/active_record_subscriber.rb:14:in `call'
|
1175
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
1176
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
1177
|
+
|
1178
|
+
|
1179
|
+
Connecting to database specified by DATABASE_URL
|
1180
|
+
[1m[36m (1.0ms)[0m [1mselect sqlite_version(*)[0m
|
1181
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
|
1182
|
+
[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
|
1183
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
|
1184
|
+
Started GET "/crash" for 127.0.0.1 at 2019-03-04 16:28:10 +0200
|
1185
|
+
Processing by DummyController#crash as HTML
|
1186
|
+
RSpec::Mocks::MockExpectationError: Airbrake received :notify_query with unexpected arguments
|
1187
|
+
expected: (hash_including(:route=>"/crash(.:format)", :method=>"GET", :func=>"tap", :file=>"lib/airbrake/rails/active_record_subscriber.rb", :line=>"anything"))
|
1188
|
+
got: ({:end_time=>2019-03-04 16:28:10.630892000 +0200, :file=>nil, :func=>nil, :line=>nil, :method=>"GET", ...able_info(\"books\")", :route=>"/crash(.:format)", :start_time=>2019-03-04 16:28:10.630829000 +0200})
|
1189
|
+
Diff:[0m
|
1190
|
+
[0m[34m@@ -1,2 +1,9 @@
|
1191
|
+
[0m[31m-["hash_including(:route=>\"/crash(.:format)\", :method=>\"GET\", :func=>\"tap\", :file=>\"lib/airbrake/rails/active_record_subscriber.rb\", :line=>\"anything\")"]
|
1192
|
+
[0m[32m+[{:end_time=>2019-03-04 16:28:10.630892000 +0200,
|
1193
|
+
[0m[32m+ :file=>nil,
|
1194
|
+
[0m[32m+ :func=>nil,
|
1195
|
+
[0m[32m+ :line=>nil,
|
1196
|
+
[0m[32m+ :method=>"GET",
|
1197
|
+
[0m[32m+ :query=>"PRAGMA table_info(\"books\")",
|
1198
|
+
[0m[32m+ :route=>"/crash(.:format)",
|
1199
|
+
[0m[32m+ :start_time=>2019-03-04 16:28:10.630829000 +0200}]
|
1200
|
+
[0m: PRAGMA table_info("books")
|
1201
|
+
Completed 500 Internal Server Error in 5403.8ms
|
1202
|
+
|
1203
|
+
ActiveRecord::StatementInvalid (RSpec::Mocks::MockExpectationError: Airbrake received :notify_query with unexpected arguments
|
1204
|
+
expected: (hash_including(:route=>"/crash(.:format)", :method=>"GET", :func=>"tap", :file=>"lib/airbrake/rails/active_record_subscriber.rb", :line=>"anything"))
|
1205
|
+
got: ({:end_time=>2019-03-04 16:28:10.630892000 +0200, :file=>nil, :func=>nil, :line=>nil, :method=>"GET", ...able_info(\"books\")", :route=>"/crash(.:format)", :start_time=>2019-03-04 16:28:10.630829000 +0200})
|
1206
|
+
Diff:[0m
|
1207
|
+
[0m[34m@@ -1,2 +1,9 @@
|
1208
|
+
[0m[31m-["hash_including(:route=>\"/crash(.:format)\", :method=>\"GET\", :func=>\"tap\", :file=>\"lib/airbrake/rails/active_record_subscriber.rb\", :line=>\"anything\")"]
|
1209
|
+
[0m[32m+[{:end_time=>2019-03-04 16:28:10.630892000 +0200,
|
1210
|
+
[0m[32m+ :file=>nil,
|
1211
|
+
[0m[32m+ :func=>nil,
|
1212
|
+
[0m[32m+ :line=>nil,
|
1213
|
+
[0m[32m+ :method=>"GET",
|
1214
|
+
[0m[32m+ :query=>"PRAGMA table_info(\"books\")",
|
1215
|
+
[0m[32m+ :route=>"/crash(.:format)",
|
1216
|
+
[0m[32m+ :start_time=>2019-03-04 16:28:10.630829000 +0200}]
|
1217
|
+
[0m: PRAGMA table_info("books")):
|
1218
|
+
lib/airbrake/rails/active_record_subscriber.rb:15:in `block in call'
|
1219
|
+
lib/airbrake/rails/active_record_subscriber.rb:14:in `each'
|
1220
|
+
lib/airbrake/rails/active_record_subscriber.rb:14:in `call'
|
1221
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
1222
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
1223
|
+
|
1224
|
+
|
1225
|
+
Connecting to database specified by DATABASE_URL
|
1226
|
+
[1m[36m (0.8ms)[0m [1mselect sqlite_version(*)[0m
|
1227
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
|
1228
|
+
[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
|
1229
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
|
1230
|
+
Started GET "/crash" for 127.0.0.1 at 2019-03-04 16:28:35 +0200
|
1231
|
+
Processing by DummyController#crash as HTML
|
1232
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1233
|
+
Connecting to database specified by DATABASE_URL
|
1234
|
+
[1m[36m (0.9ms)[0m [1mselect sqlite_version(*)[0m
|
1235
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
|
1236
|
+
[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
|
1237
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
|
1238
|
+
Started GET "/crash" for 127.0.0.1 at 2019-03-04 16:28:43 +0200
|
1239
|
+
Processing by DummyController#crash as HTML
|
1240
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1241
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "book"]]
|
1242
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
1243
|
+
#<AirbrakeTestError: after_commit>
|
1244
|
+
Completed 500 Internal Server Error in 4.4ms
|
1245
|
+
|
1246
|
+
AirbrakeTestError (AirbrakeTestError):
|
1247
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
1248
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
1249
|
+
|
1250
|
+
|
1251
|
+
Connecting to database specified by DATABASE_URL
|
1252
|
+
[1m[36m (0.9ms)[0m [1mselect sqlite_version(*)[0m
|
1253
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
|
1254
|
+
[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
|
1255
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
|
1256
|
+
Started GET "/crash" for 127.0.0.1 at 2019-03-04 16:28:56 +0200
|
1257
|
+
Processing by DummyController#crash as HTML
|
1258
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1259
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "book"]]
|
1260
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
1261
|
+
#<AirbrakeTestError: after_commit>
|
1262
|
+
Completed 500 Internal Server Error in 3.8ms
|
1263
|
+
|
1264
|
+
AirbrakeTestError (AirbrakeTestError):
|
1265
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
1266
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
1267
|
+
|
1268
|
+
|
1269
|
+
Connecting to database specified by DATABASE_URL
|
1270
|
+
[1m[36m (0.9ms)[0m [1mselect sqlite_version(*)[0m
|
1271
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
|
1272
|
+
[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
|
1273
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
|
1274
|
+
Started GET "/crash" for 127.0.0.1 at 2019-03-04 16:29:07 +0200
|
1275
|
+
Processing by DummyController#crash as HTML
|
1276
|
+
NoMethodError: undefined method `[]' for nil:NilClass: PRAGMA table_info("books")
|
1277
|
+
Completed 500 Internal Server Error in 1.2ms
|
1278
|
+
|
1279
|
+
ActiveRecord::StatementInvalid (NoMethodError: undefined method `[]' for nil:NilClass: PRAGMA table_info("books")):
|
1280
|
+
lib/airbrake/rails/active_record_subscriber.rb:19:in `block in call'
|
1281
|
+
lib/airbrake/rails/active_record_subscriber.rb:14:in `each'
|
1282
|
+
lib/airbrake/rails/active_record_subscriber.rb:14:in `call'
|
1283
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
1284
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
1285
|
+
|
1286
|
+
|
1287
|
+
Connecting to database specified by DATABASE_URL
|
1288
|
+
[1m[36m (0.9ms)[0m [1mselect sqlite_version(*)[0m
|
1289
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
|
1290
|
+
[1m[36m (0.2ms)[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
|
1291
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
|
1292
|
+
Started GET "/crash" for 127.0.0.1 at 2019-03-04 16:29:14 +0200
|
1293
|
+
Processing by DummyController#crash as HTML
|
1294
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1295
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "book"]]
|
1296
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
1297
|
+
#<AirbrakeTestError: after_commit>
|
1298
|
+
Completed 500 Internal Server Error in 4.5ms
|
1299
|
+
|
1300
|
+
AirbrakeTestError (AirbrakeTestError):
|
1301
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
1302
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
1303
|
+
|
1304
|
+
|
@@ -271,5 +271,23 @@ RSpec.describe "Rails integration specs" do
|
|
271
271
|
|
272
272
|
get '/crash'
|
273
273
|
end
|
274
|
+
|
275
|
+
context "when caller location cannot be found for a query" do
|
276
|
+
before { allow(Kernel).to receive(:caller).and_return([]) }
|
277
|
+
|
278
|
+
it "sends query to Airbrake without caller location" do
|
279
|
+
expect(Airbrake).to receive(:notify_query).with(
|
280
|
+
hash_including(
|
281
|
+
route: '/crash(.:format)',
|
282
|
+
method: 'GET',
|
283
|
+
func: nil,
|
284
|
+
file: nil,
|
285
|
+
line: nil
|
286
|
+
)
|
287
|
+
).at_least(:once)
|
288
|
+
|
289
|
+
get '/crash'
|
290
|
+
end
|
291
|
+
end
|
274
292
|
end
|
275
293
|
end
|