diff --git a/apps/server/src/app.ts b/apps/server/src/app.ts index 736fa6ead..769bee525 100644 --- a/apps/server/src/app.ts +++ b/apps/server/src/app.ts @@ -51,6 +51,8 @@ function buildApp({ auth, characterService, chatService, providerService }: AppD .use('*', bodyLimit({ maxSize: 1024 * 1024 })) .onError((err, c) => { if (err instanceof ApiError) { + logger.withError(err).warn('API error occurred') + return c.json({ error: err.errorCode, message: err.message,