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: Pass message to log calls as first argument #2363

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

taratatach
Copy link
Member

@taratatach taratatach commented Dec 9, 2024

Winston loggers expect the message to be the first argument and extra
options as the other ones.

Failing to do that results in messages to be interpreted as options
and transformed into objects and finally not being properly displayed
(or filterable) when debugging.

Please make sure the following boxes are checked:

  • PR is not too big
  • it improves UX & DX in some way
  • it includes unit tests matching the implementation changes
  • it includes scenarios matching a new behaviour or has been manually tested
  • it includes relevant documentation

  Winston loggers expect the message to be the first argument and extra
  options as the other ones.

  Failing to do that results in messages to be interpreted as options
  and transformed into objects and finally not being properly displayed
  (or filterable) when debugging.
@taratatach taratatach self-assigned this Dec 9, 2024
@taratatach taratatach merged commit 74abd19 into master Dec 10, 2024
14 of 15 checks passed
@taratatach taratatach deleted the fix/log-calls-expect-message-as-first-arg branch December 10, 2024 10:21
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

Successfully merging this pull request may close these issues.

1 participant