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

Enable stderr logging #50

Merged
merged 3 commits into from
Aug 22, 2024
Merged

Enable stderr logging #50

merged 3 commits into from
Aug 22, 2024

Conversation

foodprocessor
Copy link
Collaborator

The mediaserver will log our NX_PRINT output to stderr. On Linux, that is written to a service log (visible with journalctl), but on Windows it is lost.
To capture this output to a file, developers are told to use "OutputRedirector" by creating output redirection files, as described in the Nx Meta documentation, and on the forum: here.
With this change, the plugin will go and create those files itself, so that NX_PRINT output will be captured in deployment.
NOTE: output redirection requires restarting the mediaserver again after the plugin creates the redirection files.
This logging method is not great, but it's an improvement over our current situation (no plugin logs are captured on Windows).

What type of Pull Request is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Checklist

  • Tested locally
  • Added new dependencies
  • Updated documentation
  • Added tests

@foodprocessor foodprocessor merged commit 70b03e3 into main Aug 22, 2024
12 checks passed
@foodprocessor foodprocessor deleted the enable-stderr-logging branch August 22, 2024 15:53
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