-
Notifications
You must be signed in to change notification settings - Fork 11
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
trap SIGINT to suppress noisy stack traces #113
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Useful and comprehensible, LGTM
Co-authored-by: Matt Tait <[email protected]>
@salsferrazza needs some linting clean up, I touched up a couple of the issues |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The linting LGTM @mservidio
Let's review the signal wire up with global keyword
One other thought, the logic in main.py will only be a feature add for cli usage, but not library usage. Moving this into the MessageParser instance may be more beneficial. |
@salsferrazza re-factored a little, take a look... |
Control-C'ing out of a transcoder process run in the foreground exits with a very noisy stack trace that inhibits immediate diagnostics of the last few messages. This CL traps SIGINT and exists more gracefully. It also provides the basic entry point for #13 and #111.