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

Remove raw traceback #1221

Merged
merged 2 commits into from Oct 1, 2017
Merged

Remove raw traceback #1221

merged 2 commits into from Oct 1, 2017

Conversation

dbgasaway
Copy link
Contributor

@dbgasaway dbgasaway commented Sep 18, 2017

Fixes #1220

@dbgasaway
Copy link
Contributor Author

dbgasaway commented Sep 18, 2017

It should be noted that stack_info was added in Python 3.2, but logging accepts an arbitrary **kwargs input, so I think in older versions it will just not print the stack information, but still print the error message.

*Apparently pypy throws an exception instead of doing nothing - I'm not sure if that's intended.

Pypy (and maybe other implementations besides CPython) doesn't ignore extra keyword arguments to log.warning, and raises an exception instead. The argument stack_info was added in 3.2, so not using it in older versions shouldn't affect the other implementations.
@dpkp dpkp merged commit 7794ce8 into dpkp:master Oct 1, 2017
@dpkp
Copy link
Owner

dpkp commented Oct 1, 2017

Thanks!

@dbgasaway dbgasaway deleted the remove_raw_traceback branch October 2, 2017 04:15
88manpreet pushed a commit to Yelp/kafka-python that referenced this pull request Jul 16, 2018
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.

None yet

2 participants