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

Fix: calling logger methods without a message #501

Merged
merged 8 commits into from
Jul 16, 2022

Conversation

RobinTail
Copy link
Owner

@RobinTail RobinTail commented Jul 16, 2022

There is an issue with logger when calling its methods without a message:

logger.debug({something: true});

The output was empty, considering the first argument to be a message (string).
This PR is fixing it by adding [No message] message string before printing the object.

I'm also improving the way of testing the logger.

@RobinTail RobinTail added the bug Something isn't working label Jul 16, 2022
@RobinTail
Copy link
Owner Author

ESM test fails on Node 18, only in CI

@RobinTail
Copy link
Owner Author

Node 18 version in CI is 18.6.0

@RobinTail
Copy link
Owner Author

OK. There is a ts-node compatibility issue with Node 18.6.
Need to fix it in another PR first

@RobinTail
Copy link
Owner Author

related issue: TypeStrong/ts-node#1839

@RobinTail
Copy link
Owner Author

RobinTail commented Jul 16, 2022

going to fix it in the following PR:
#502

@RobinTail RobinTail marked this pull request as ready for review July 16, 2022 17:26
Copy link
Owner Author

@RobinTail RobinTail left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ready

@RobinTail RobinTail merged commit 43d56d3 into master Jul 16, 2022
@RobinTail RobinTail deleted the handle-no-message-logger branch July 16, 2022 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant