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 ", 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 }