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

Redirect headless exceptions to stderr #1411

Merged
merged 1 commit into from
Jun 12, 2023

Conversation

glopesdev
Copy link
Member

This PR redirects the stack traces for all unhandled exceptions in headless runners (e.g. player or --no-editor flag) to stderr. This allows for an easier separation of outputs for CLI applications. For example, from powershell the following will log only the errors to a file:

bonsai --no-editor workflow.bonsai 2>> log.file

Fixes #1410

@glopesdev glopesdev added the feature New planned feature label Jun 12, 2023
@glopesdev glopesdev added this to the 2.8 milestone Jun 12, 2023
@glopesdev glopesdev merged commit e527eab into bonsai-rx:main Jun 12, 2023
@glopesdev glopesdev deleted the issue-1410 branch June 12, 2023 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New planned feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When running in headless mode exceptions should be redirected to stderr
1 participant