From 6b0aa392a8554b3322d1712d2fdd83d9f6b27882 Mon Sep 17 00:00:00 2001 From: Ollie Treend Date: Tue, 19 Mar 2024 12:52:09 +0000 Subject: [PATCH] Add a route that will trigger a stack trace 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`. --- config/routes.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/routes.rb b/config/routes.rb index c61b7f5ab..a5e5aec63 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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