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

feat(local-ic): stream logs #1269

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Conversation

Reecepbcups
Copy link
Member

@Reecepbcups Reecepbcups commented Sep 26, 2024

Summary

For the Spawn UI platform, we need a way to get logs from the network -> the users UI. This PR adds support to stream the logs to both the console & a unique file. Then the user can query /logs in the REST api. It will tail the last N lines, and continue to return new data on new interaction.

Based on concept here: https://github.com/Reecepbcups/golang_stream

TODO

  • Make this an opt in (standard only saves to console, then hide this endpoint)
  • Download entire file -> the user
  • stream docker container logs out as well? (i.e. /stream-container/localjuno-1)
  • Remove dumb comments
  • Print tail X lines of logs endpoint (instead of trying to merge them)

Copy link

vercel bot commented Sep 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
interchaintest-docs ⬜️ Ignored (Inspect) Sep 26, 2024 11:06pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant