Skip to content

Commit dd1f36c

Browse files
feat: log req/resp data on coercion failure
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent e8866bd commit dd1f36c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/com/moclojer/components/router.clj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@
2929
(defn- coercion-error-handler [status]
3030
(fn [exception request]
3131
(logs/log :error "failed to coerce req/resp"
32-
nil nil exception)
32+
(logs/log :error "Failed to coerce request/response"
33+
{:uri (:uri request)
34+
:method (:request-method request)}
35+
nil
36+
exception)
3337
(send-sentry-evt-from-req! request exception)
3438
{:status status
3539
:body (if (= 400 status)

0 commit comments

Comments
 (0)