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

Provide simple means of stacktraces for non-error messages #339

Closed
wants to merge 1 commit into from
Closed

Provide simple means of stacktraces for non-error messages #339

wants to merge 1 commit into from

Conversation

goodspark
Copy link

@goodspark goodspark commented Apr 13, 2019

Resolves #338

When I run equivalent code in a shell:
Screenshot from 2019-04-13 15-10-42

@@ -52,7 +52,7 @@ def test_transport_option(monkeypatch):
assert str(Client(transport=transport).dsn) == dsn


def test_http_proxy(monkeypatch):
def test_http_proxy():
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These were unused

return self.capture_event({"message": message, "level": level})
event = {"message": message, "level": level}
if stacktrace is True:
event["stacktrace"] = current_stacktrace(self.client.options["with_locals"])
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possible improvement: Also take a with_locals to override the client's options. If None, use the client's options?

@goodspark goodspark closed this Apr 23, 2019
@goodspark goodspark deleted the msgs-w-stacktraces branch April 23, 2019 20:00
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.

Provide a means for capturing stack trace for messages that are not errors
1 participant