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

Should we get the orchestrator log output in the Unity log for the session creator? #154

Open
jackjansen opened this issue Apr 10, 2024 · 1 comment
Assignees

Comments

@jackjansen
Copy link
Collaborator

@troeggla assigning this to you for initial feedback.

I'm thinking that it would be a good idea to get the orchestrator log output into the Unity log, for at least one of the users. The best candidate is probably the session creator.

The implementation would be rather simple: there would be a completely independent thread in VR2Gather that would use the orchestrator log-reading interface, and it would simply dump anything it gets into the Unity log. So, it would contain all orchestrator log messages, including those for other sessions and so. Especially those, I might say, because they could pinpoint obscure problems where different sessions somehow influence each other.

First question: is this feasible from the orchestrator side? Can there be multiple readers of the log?

Second question: what is the orchestrator API for reading the log files? Is it simple streamed HTTP or is it socketIO?

Third question: or is this a stupid idea?

@troeggla
Copy link
Member

Yes, there can be any number of readers of the log. It is implemented as a Socket.IO endpoint named log under the namespace /log, that will fan out anything dumped into it to all listeners

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

No branches or pull requests

2 participants