From c6d763a905b163ea5c9244fbd483a3aaa233444b Mon Sep 17 00:00:00 2001 From: Rory& Date: Wed, 1 Oct 2025 20:37:42 +0200 Subject: [PATCH] Log schema name on error --- src/api/util/handlers/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/util/handlers/route.ts b/src/api/util/handlers/route.ts index b13c929e..30ffa2d0 100644 --- a/src/api/util/handlers/route.ts +++ b/src/api/util/handlers/route.ts @@ -135,7 +135,7 @@ export function route(opts: RouteOptions) { ); if (process.env.LOG_VALIDATION_ERRORS) console.log( - `[VALIDATION ERROR] ${req.method} ${req.originalUrl} -`, + `[VALIDATION ERROR] ${req.method} ${req.originalUrl} - SCHEMA='${opts.requestBody}' -`, validate?.errors, ); throw FieldErrors(fields);