Skip to content

Commit

Permalink
Add a route that will trigger a stack trace
Browse files Browse the repository at this point in the history
So that Colin can test how multi-line log entries are handled by Logit.

To trigger the error, run the app and visit the path `/explode`.
  • Loading branch information
ollietreend committed Mar 19, 2024
1 parent 8299b2a commit 6b0aa39
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,7 @@ def self.matches?(request)
# GoodJob admin interface – only accessible to support users
mount GoodJob::Engine => "/good_job", constraints: SupportUserConstraint
get "/good_job", to: redirect("/support")

# Deliberately cause a stack trace so Colin can test how it gets logged
get "/explode" => ->(_env) { BOOM! }
end

0 comments on commit 6b0aa39

Please sign in to comment.