@@ -249,22 +249,22 @@ def send_req(meth, path, args)
249249
250250 describe "GET 'index'" do
251251 it 'should be successful and report two messages' do
252- logger_mock . should_receive ( :info ) . with ( '[Rollbar] Success' ) . twice
252+ logger_mock . should_receive ( :debug ) . with ( '[Rollbar] Success' ) . twice
253253 get 'index'
254254 expect ( response . status ) . to eq ( 200 )
255255 end
256256 end
257257
258258 describe "'report_exception'" , :type => 'request' do
259259 it 'should raise a NameError and report an exception after a GET' do
260- logger_mock . should_receive ( :info ) . with ( '[Rollbar] Success' ) . once
260+ logger_mock . should_receive ( :debug ) . with ( '[Rollbar] Success' ) . once
261261
262262 get '/report_exception'
263263 expect ( response . status ) . to eq ( 200 )
264264 end
265265
266266 it 'should raise a NameError and have PUT params in the reported exception' do
267- logger_mock . should_receive ( :info ) . with ( '[Rollbar] Success' )
267+ logger_mock . should_receive ( :debug ) . with ( '[Rollbar] Success' )
268268
269269 send_req ( :put , '/report_exception' , wrap_process_args ( :putparam => 'putval' ) )
270270
@@ -274,7 +274,7 @@ def send_req(meth, path, args)
274274
275275 context 'using deprecated report_exception' do
276276 it 'reports the errors successfully' do
277- logger_mock . should_receive ( :info ) . with ( '[Rollbar] Success' )
277+ logger_mock . should_receive ( :debug ) . with ( '[Rollbar] Success' )
278278
279279 send_req ( :put , '/deprecated_report_exception' ,
280280 wrap_process_args ( :putparam => 'putval' ) )
@@ -285,7 +285,7 @@ def send_req(meth, path, args)
285285 end
286286
287287 it 'should raise a NameError and have JSON POST params' do
288- logger_mock . should_receive ( :info ) . with ( '[Rollbar] Success' )
288+ logger_mock . should_receive ( :debug ) . with ( '[Rollbar] Success' )
289289 @request . env [ 'HTTP_ACCEPT' ] = 'application/json'
290290
291291 params = { :jsonparam => 'jsonval' } . to_json
@@ -316,7 +316,7 @@ def send_req(meth, path, args)
316316
317317 context 'when Rails Error Subscriber is enabled' , if : ::Rails . gem_version >= ::Gem ::Version . new ( '7.1.0' ) do
318318 it '`handle` should not raise an error and report a warning via rails error subscriber' do
319- logger_mock . should_receive ( :info ) . with ( '[Rollbar] Success' ) . never
319+ logger_mock . should_receive ( :debug ) . with ( '[Rollbar] Success' ) . never
320320
321321 expect ( Rollbar ) . to receive ( :log ) do |level , _ , extra |
322322 expect ( extra [ :custom_data_method_context ] ) . to be_eql ( 'application' )
@@ -327,7 +327,7 @@ def send_req(meth, path, args)
327327 end
328328
329329 it '`handle` should report a warning via rails error subscriber when capture_uncaught is false' do
330- logger_mock . should_receive ( :info ) . with ( '[Rollbar] Success' ) . never
330+ logger_mock . should_receive ( :debug ) . with ( '[Rollbar] Success' ) . never
331331
332332 Rollbar . configure do |config |
333333 config . capture_uncaught = false
@@ -342,7 +342,7 @@ def send_req(meth, path, args)
342342 end
343343
344344 it '`report` should raise an error and report an error via rails error subscriber' do
345- logger_mock . should_receive ( :info ) . with ( '[Rollbar] Success' ) . never
345+ logger_mock . should_receive ( :debug ) . with ( '[Rollbar] Success' ) . never
346346
347347 expect ( Rollbar ) . to receive ( :log ) do |level , _ , extra |
348348 expect ( extra [ :custom_data_method_context ] ) . to be_eql ( 'application' )
@@ -355,7 +355,7 @@ def send_req(meth, path, args)
355355 end
356356
357357 it 'uncaught exception should raise an error and report an error via rails error subscriber' do
358- logger_mock . should_receive ( :info ) . with ( '[Rollbar] Success' ) . never
358+ logger_mock . should_receive ( :debug ) . with ( '[Rollbar] Success' ) . never
359359
360360 expect ( Rollbar ) . to receive ( :log ) do |level , _ , extra |
361361 expect ( extra [ :custom_data_method_context ] ) . to be_eql ( 'application.action_dispatch' )
@@ -368,7 +368,7 @@ def send_req(meth, path, args)
368368 end
369369
370370 it 'uncaught exception should not report an error when capture_uncaught is not set' do
371- logger_mock . should_receive ( :info ) . with ( '[Rollbar] Success' ) . never
371+ logger_mock . should_receive ( :debug ) . with ( '[Rollbar] Success' ) . never
372372
373373 Rollbar . configure do |config |
374374 config . capture_uncaught = false
@@ -384,7 +384,7 @@ def send_req(meth, path, args)
384384
385385 context 'when Rails Error Subscriber is enabled in unsupported Rails' , if : ::Rails . gem_version < ::Gem ::Version . new ( '7.1.0' ) do
386386 it 'uncaught exception should raise an error and report via middleware' do
387- logger_mock . should_receive ( :info ) . with ( '[Rollbar] Success' ) . once
387+ logger_mock . should_receive ( :debug ) . with ( '[Rollbar] Success' ) . once
388388
389389 expect do
390390 get '/cause_exception'
@@ -431,7 +431,7 @@ def send_req(meth, path, args)
431431 end
432432
433433 it 'should include locals in extra data' do
434- logger_mock . should_receive ( :info ) . with ( '[Rollbar] Success' ) . once
434+ logger_mock . should_receive ( :debug ) . with ( '[Rollbar] Success' ) . once
435435
436436 expect {
437437 get '/cause_exception_with_locals?test_fibers=true'
@@ -468,7 +468,7 @@ def send_req(meth, path, args)
468468 end
469469
470470 it 'should not include locals in extra data' do
471- logger_mock . should_receive ( :info ) . with ( '[Rollbar] Success' ) . once
471+ logger_mock . should_receive ( :debug ) . with ( '[Rollbar] Success' ) . once
472472
473473 expect { get '/cause_exception_with_locals' } . to raise_exception ( NoMethodError )
474474 expect ( Rollbar . last_report [ :body ] [ :trace ] [ :frames ] [ -1 ] [ :locals ] ) . to be_eql ( nil )
@@ -478,7 +478,7 @@ def send_req(meth, path, args)
478478
479479 describe "'cause_exception'" , :type => 'request' do
480480 it 'should raise an uncaught exception and report a message' do
481- logger_mock . should_receive ( :info ) . with ( '[Rollbar] Success' ) . once
481+ logger_mock . should_receive ( :debug ) . with ( '[Rollbar] Success' ) . once
482482
483483 expect { get '/cause_exception' } . to raise_exception ( NameError )
484484 end
@@ -517,7 +517,7 @@ def send_req(meth, path, args)
517517 end
518518
519519 it 'middleware should catch the exception and only report to rollbar once' do
520- logger_mock . should_receive ( :info ) . with ( '[Rollbar] Success' ) . once
520+ logger_mock . should_receive ( :debug ) . with ( '[Rollbar] Success' ) . once
521521
522522 get '/cause_exception'
523523 end
0 commit comments