From d6c132f32e2bfef4cfd7d209a06627bc0bd9fa3b Mon Sep 17 00:00:00 2001 From: jlenon7 Date: Tue, 1 Jul 2025 10:34:04 -0300 Subject: [PATCH 1/2] chore(handler): add all error details to log --- src/handlers/HttpExceptionHandler.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/handlers/HttpExceptionHandler.ts b/src/handlers/HttpExceptionHandler.ts index 239e694..0364a17 100644 --- a/src/handlers/HttpExceptionHandler.ts +++ b/src/handlers/HttpExceptionHandler.ts @@ -77,7 +77,16 @@ export class HttpExceptionHandler { ) if (isUsingJsonFormatter) { - Log.channelOrVanilla('exception').error(error) + Log.channelOrVanilla('exception').error({ + name: error.name, + code: error.code, + status: error.status, + message: error.message, + help: error.help, + cause: error.cause, + details: error.details, + stack: error.stack + }) return } From 7e20f2d8a1d77f3ef996ce1b614a29259b70ef39 Mon Sep 17 00:00:00 2001 From: jlenon7 Date: Tue, 1 Jul 2025 10:38:24 -0300 Subject: [PATCH 2/2] chore(npm): update dependencies --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index c344325..cab3237 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@athenna/http", - "version": "5.29.0", + "version": "5.30.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@athenna/http", - "version": "5.29.0", + "version": "5.30.0", "license": "MIT", "devDependencies": { "@athenna/artisan": "^5.6.0", diff --git a/package.json b/package.json index 5ec13ae..b202cf3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@athenna/http", - "version": "5.29.0", + "version": "5.30.0", "description": "The Athenna Http server. Built on top of fastify.", "license": "MIT", "author": "João Lenon ",