Skip to content

Commit

Permalink
1.0.6: Fix displaying stack traces for exceptions with cause
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoddo committed Jan 2, 2025
1 parent d9941b6 commit 96e136f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vexera/log",
"version": "1.0.5",
"version": "1.0.6",
"description": "Graylog logger",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand All @@ -13,11 +13,12 @@
},
"repository": {
"type": "git",
"url": "https://gitlab.com/vexera/log.git"
"url": "https://github.com/Vexera/log.git"
},
"files": [
"lib/**/*",
"typings/*"
"typings/*",
"LICENSE.txt"
],
"author": "Zoddo <[email protected]>",
"license": "GPL-3.0-or-later",
Expand Down
2 changes: 1 addition & 1 deletion src/callbacks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function transform(message: any) {
}

if (message.short_message instanceof Error) {
if (!message.full_message) message.full_message = message.short_message.stack;
if (!message.full_message) message.full_message = inspect(message.short_message);
if (!message.short_message) message.short_message = message.short_message.message;
}

Expand Down

0 comments on commit 96e136f

Please sign in to comment.