@teamscala/service-boot 0.23.471 → 0.23.472

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  },
7
7
  "name": "@teamscala/service-boot",
8
8
  "type": "module",
9
- "version": "0.23.471",
9
+ "version": "0.23.472",
10
10
  "sideEffects": false,
11
11
  "imports": {
12
12
  "#service-boot/*": "./src/*",
@@ -234,6 +234,17 @@ export async function mountOrpcRouter(
234
234
  context: { prisma, db8, headers: c.req.raw.headers, resolveUser },
235
235
  });
236
236
  if (!result?.matched) return c.notFound();
237
+ // ORPC swallows procedure errors into a 500 response with a
238
+ // generic INTERNAL_SERVER_ERROR body. Without logging here the
239
+ // only signal is a fleet-wide spike in 500s with no traceback —
240
+ // measured 2026-09-04 when the regenerated prisma client shipped
241
+ // an empty orm and every model action returned a silent 500.
242
+ // This makes every 500 LOUD with the request path for routing.
243
+ if (result.response.status >= 500) {
244
+ log.error(
245
+ `[ORPC] ${c.req.method} ${c.req.path} → ${result.response.status}`,
246
+ );
247
+ }
237
248
  return result.response;
238
249
  },
239
250
  );