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

chore(cu): update log statements to be appropriate log levels #999

Open
TillaTheHun0 opened this issue Sep 4, 2024 · 0 comments
Open

chore(cu): update log statements to be appropriate log levels #999

TillaTheHun0 opened this issue Sep 4, 2024 · 0 comments
Labels
cu ao Compute Unit

Comments

@TillaTheHun0
Copy link
Member

TillaTheHun0 commented Sep 4, 2024

Background

#970 added a backwards compatible logger with log levels to the CU. All previous logs are being made via backwards compatible apis, and are defaulted to the info level.

Problem

Not all logs are info logs, and the new logger has more apis to specify the log level. We need to go through all log statements and decide which level each of them are at and add that level appropriately.

Developer Notes

The new logger can be found here and has the following apis:

  • logger() (just call it as a function -- logs at info level
  • logger.error|warn|info|http|verbose|debug|silly()
  • logger.tap (just call it as a function -- logs at info level. Great for passively logging data flow as part of an Async chain ie. `.map(logger.tap(....))
  • logger.tapError|tapWarn|tapInfo|tapHttp|tapVerbose|tapDebug|tapSilly()
@TillaTheHun0 TillaTheHun0 added the cu ao Compute Unit label Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cu ao Compute Unit
Projects
None yet
Development

No branches or pull requests

1 participant