Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

Do not record errors for terminals #924

Open
mitsuhiko wants to merge 3 commits into master
base: master
Choose a base branch
Loading
from feature/notty
Open

Do not record errors for terminals #924

mitsuhiko wants to merge 3 commits into master from feature/notty

Conversation

@mitsuhiko
Copy link
Contributor

@mitsuhiko mitsuhiko commented Dec 5, 2016

This will not record errors by default if a tty is detected. If you
want to record anyways do not register the default hook and manually
install it with the flag flipped.

mdornseif, ryanhiebert, and nikolaik reacted with thumbs up emoji
Copy link
Member

dcramer commented Dec 5, 2016

offline conversation around this was how noisy things like custom scripts are when you're fucking around from a terminal

+1

Copy link
Contributor Author

@dcramer added test

Copy link
Contributor

Why not just entirely skip installing the hook if it's not a tty? Is it possible that stdin being a tty could change while the process is running?

Copy link
Contributor Author

mitsuhiko commented Dec 14, 2016
edited
Loading

@mattrobenolt i don't know if it can change on the same stream but there are a few cases where this can be an issue:

  • you fork off a child and close the input stream
  • someone patches sys.stdin at runtime

Copy link

ryanhiebert commented Feb 8, 2018
edited
Loading

We've been going nuts with typos on an interactive console causing emails from Sentry, and the delay that sending the message causes when we do hit errors from the console before it shows us the error interactively. We would really appreciate this feature!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

No reviews

Projects

None yet

Milestone

7.0

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /