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: display bot console.logs on the UI #99

Open
yurijmikhalevich opened this issue Dec 21, 2024 · 0 comments
Open

feat: display bot console.logs on the UI #99

yurijmikhalevich opened this issue Dec 21, 2024 · 0 comments

Comments

@yurijmikhalevich
Copy link
Member

Goal: let users view their bot logs on the UI for debugging purposes

Proposal:

  • overwrite console.log|warn|error|etc methods in the isolate environment and make them write to our own variables
  • read these variables after every bot step and send them to the UI with the state (for MVP; at some point we may consider a websocket connection to send the logs, we probably shouldn't do it in this PR to keep things simple)

Alternative to the above ⬆️:

  • Read isolate's stdout – not sure how straightforward this would be
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant