Skip to content

fix: Use error message as log message if none provided - #1229

Merged
seb-cr merged 3 commits into
masterfrom
ENG-5363/use-error-message-in-log
Sep 24, 2026
Merged

seb-cr merged 3 commits into
masterfrom
ENG-5363/use-error-message-in-log

Conversation

@seb-cr

@seb-cr seb-cr commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

This fixes a bug in our error logging that I noticed while working on #1228. If the message parameter of Logger#error is omitted, an empty message is logged:

{
  "level": "error",
  "message": "",
  "error": { /* ... */ }
}

This previously went unnoticed because the Lumigo error integration also writes to the logs and was extracting error.message, so both were visible, albeit in separate log messages.

When no error log message is specified, we should fall back to using error.message.

Jira: ENG-5363

@seb-cr
seb-cr merged commit 93c9703 into master Sep 24, 2026
6 checks passed
@seb-cr
seb-cr deleted the ENG-5363/use-error-message-in-log branch September 24, 2026 13:49
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 2.3.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants