Log request body in 404 errors
Assisted-by: Claude Opus 4.5 via Claude Code
change mxuztkyynurlxrorouyvzntlrulklorp
commit f1ae2146386638830af071eb50b0819c9db05a87
author Alpha Chen <alpha@kejadlen.dev>
date
parent qpvnsqqw
diff --git a/lib/pro_tacts/web.rb b/lib/pro_tacts/web.rb
index 09c961f..9d67482 100644
--- a/lib/pro_tacts/web.rb
+++ b/lib/pro_tacts/web.rb
@@ -29,7 +29,8 @@ module ProTacts
     plugin :not_found do
       Sentry.capture_message("404 Not Found", level: :warning, extra: {
         path: request.path,
-        method: request.request_method
+        method: request.request_method,
+        body: request.body.read
       })
       "Not Found"
     end