From 8f970e1e573099ce95bae37f6b2fcb2ea73c1b21 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sun, 19 Jul 2026 01:50:13 +0200 Subject: Add a 500er logger and a trip wire in admin/boom to test it --- app/controllers/admin_controller.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'app/controllers/admin_controller.rb') 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 end end end + + # Deliberately raises, to verify the error-log tripwire end to end. + # Behind login_required like the rest of the controller; harmless -- + # the visitor gets the ordinary 500 page. + def boom + raise "Deliberate test exception via admin/boom" + end end -- cgit v1.3