-
Notifications
You must be signed in to change notification settings - Fork 550
feat(loguru): Sentry logs for Loguru #4445
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
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found.
Additional details and impacted files@@ Coverage Diff @@
## master #4445 +/- ##
==========================================
- Coverage 80.68% 80.55% -0.13%
==========================================
Files 142 142
Lines 15986 16025 +39
Branches 2732 2745 +13
==========================================
+ Hits 12898 12909 +11
- Misses 2230 2245 +15
- Partials 858 871 +13
|
@@ -283,3 +286,197 @@ def test_logging_dictionary_args(sentry_init, capture_events): | |||
== "the value of foo is bar, and the value of bar is baz" | |||
) | |||
assert event["logentry"]["params"] == {"foo": "bar", "bar": "baz"} | |||
|
|||
|
|||
def test_sentry_logs_warning(sentry_init, capture_envelopes): |
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.
These were just moved to this file from tests/test_logs.py
Additional change: removed setting |
Allow to send Loguru logs to Sentry.
We can't parametrize them nicely, but this is a good first step.
Also:
@minimum_python_37
from some tests that don't need 3.7+._LoguruBaseHandler
)Closes #4151