Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not displaying error stack when passing an error as first parameter #5

Open
BeBoRE opened this issue Mar 16, 2022 · 0 comments
Open

Comments

@BeBoRE
Copy link

BeBoRE commented Mar 16, 2022

When you pass an Error to Logger. DiscordTransport only show the name for that error and the default metadata, is there a reason for this? I would like it to display the error stack aswell, but I am too lazy to pass it myself.

Code:

logger.error(new Error('Failed Successfully'));

Current situation:
Without stack

Desired situation:
With stack

I don't mind implementing this myself and creating a pull request, I would just like to know why this isn't the default behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant