Skip to content

fix: reuse helia logger instead of creating a new one #156

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

Merged
merged 3 commits into from
Jul 9, 2024

Conversation

achingbrain
Copy link
Member

Helia makes a logger available for use so use it instead of creating another one. It prefixes log lines for us which makes component log names more intuitive.

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if necessary (this includes comments as well)
  • I have added tests that prove my fix is effective or that my feature works

@achingbrain achingbrain force-pushed the fix/reuse-helia-logger branch from a450de5 to 2a8c168 Compare April 15, 2024 08:46
Helia makes a logger available for use so use it instead of creating
another one.  It prefixes log lines for us which makes component log
names more intuitive.
@achingbrain achingbrain force-pushed the fix/reuse-helia-logger branch from 2a8c168 to 6413e8f Compare April 15, 2024 08:49
Comment on lines +5 to 10
* This healthcheck script is used to check if the server is running and healthy
*/
const rootReq = await fetch(`http://${HOST}:${RPC_PORT}/api/v0/http-gateway-healthcheck`, { method: 'GET' })
const rootReq = await fetch(`http://${HOST}:${RPC_PORT}/api/v0/http-gateway-healthcheck`, {
method: 'GET'
})
const status = rootReq.status
Copy link
Member

Choose a reason for hiding this comment

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

nit: are we getting any logging information now that we're removing the log here?

the prior log was probably too verbose (log every 12 seconds..) but I just want to make sure we can see some type of healthcheck item if we need to

@achingbrain achingbrain merged commit d69a60e into main Jul 9, 2024
4 checks passed
@achingbrain achingbrain deleted the fix/reuse-helia-logger branch July 9, 2024 06:40
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.

2 participants