Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
bliof-fc committed Feb 9, 2024
1 parent 127420d commit ee49dd0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/integration/sinatra_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ class MySinatraApp < Sinatra::Base
it 'logs the request with the exception' do
get '/error', {}, 'HTTP_X_REQUEST_ID' => '700a6a01'

puts "last_log_entry: #{last_log_entry}"
expected = "E, #{time_pid_tags} GET /error 500 in 0ms type=request #{data_as_text} exception=undefined method `name' for nil:NilClass\n"
puts "expected: #{expected}"

expect(last_log_entry).to start_with("E, #{time_pid_tags} GET /error 500 in 0ms type=request #{data_as_text} exception=undefined method `name' for nil:NilClass\n")
end
end
Expand Down

0 comments on commit ee49dd0

Please sign in to comment.