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

Use strings for severity of currencyservice log output #1344

Merged
merged 1 commit into from
Dec 2, 2022
Merged

Conversation

NimJay
Copy link
Collaborator

@NimJay NimJay commented Dec 1, 2022

Background

Fixes

#1274

Change Summary

  • Use the new formatters option of pino to make sure currencyservice's logs output severity as a string (e.g., "info") — not a number (e.g., 30).

Additional Notes

  • Let me know if you'd like me to clarify anything.

Testing Procedure

@NimJay NimJay changed the title Use formatter option for pino Use strings for severity of currencyservice log output Dec 1, 2022
@NimJay NimJay marked this pull request as ready for review December 1, 2022 22:43
@NimJay NimJay requested a review from a team as a code owner December 1, 2022 22:43
@github-actions
Copy link

github-actions bot commented Dec 1, 2022

🚲 PR staged at http://35.188.161.244

level (logLevelString, logLevelNum) {
return { severity: logLevelString }
}
}
Copy link
Collaborator Author

@NimJay NimJay Dec 2, 2022

Choose a reason for hiding this comment

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

Just the clarify: level is a function. pino passes in two arguments when it's invoked. See docs here.

@mathieu-benoit mathieu-benoit linked an issue Dec 2, 2022 that may be closed by this pull request
@NimJay NimJay merged commit 34dc6fa into main Dec 2, 2022
@NimJay NimJay deleted the nimjay-logging branch December 2, 2022 19:34
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.

The log level of the currency service contains an invalid value
2 participants