summaryrefslogtreecommitdiff
path: root/app/controllers/admin_controller.rb
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-07-19 01:50:13 +0200
committererdgeist <erdgeist@erdgeist.org>2026-07-19 01:50:13 +0200
commit8f970e1e573099ce95bae37f6b2fcb2ea73c1b21 (patch)
tree51b2899d798db7fad1e1b29d808ea62d1cc73294 /app/controllers/admin_controller.rb
parent69c062cc840c0da81b60a4c635a63743caae1bad (diff)
Add a 500er logger and a trip wire in admin/boom to test it
Diffstat (limited to 'app/controllers/admin_controller.rb')
-rw-r--r--app/controllers/admin_controller.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb
index 8bd99ac..d9cf1be 100644
--- a/app/controllers/admin_controller.rb
+++ b/app/controllers/admin_controller.rb
@@ -71,4 +71,11 @@ class AdminController < ApplicationController
71 end 71 end
72 end 72 end
73 end 73 end
74
75 # Deliberately raises, to verify the error-log tripwire end to end.
76 # Behind login_required like the rest of the controller; harmless --
77 # the visitor gets the ordinary 500 page.
78 def boom
79 raise "Deliberate test exception via admin/boom"
80 end
74end 81end