-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
DEV: Introduce logger_warning #1148
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1148 +/- ##
==========================================
+ Coverage 92.12% 92.14% +0.02%
==========================================
Files 24 24
Lines 4772 4788 +16
Branches 989 990 +1
==========================================
+ Hits 4396 4412 +16
Misses 228 228
Partials 148 148
Continue to review full report at Codecov.
|
@MartinThoma, |
In general this logic makes sense to me:
What do you mean by that?
I'm sorry, I also don't understand that part. Could you please make an example 😅 |
add a function in _utils that will process the logs:
where needed, you will call this function: that way to convert logging to exception will just have to overload the function on request:
|
OK, I've now understood what you're suggesting. Thank you for going in detail ❤️ What I still don't understand is why you want to adjust it. Did you know that you can modify the log handler / log formatter of arbitrary logger objects? We could even add the exception information: https://stackoverflow.com/a/29556246/562769 |
By the way: Thank you for giving me feedback ❤️ I'm always appreciating that 🤗 |
|
|
I still don't quite get it, but that's ok 😄 The proposal you made is a very good middle-ground:
Give me a few minutes; I'll adjust the PR :-) |
New Features (ENH): - Add writer.add_annotation, page.annotations, and generic.AnnotationBuilder (#1120) Bug Fixes (BUG): - Set /AS for /Btn form fields in writer (#1161) - Ignore if /Perms verify failed (#1157) Robustness (ROB): - Cope with utf16 character for space calculation (#1155) - Cope with null params for FitH / FitV destination (#1152) - Handle outlines without valid destination (#1076) Developer Experience (DEV): - Introduce _utils.logger_warning (#1148) Maintenance (MAINT): - Break up parse_to_unicode (#1162) - Add diagnostic output to exception in read_from_stream (#1159) - Reduce PdfReader.read complexity (#1151) Testing (TST): - Add workflow tests found by arc testing (#1154) - Decrypt file which is not encrypted (#1149) - Test CryptRC4 encryption class; test image extraction filters (#1147) Full Changelog: 2.7.0...2.8.0
No description provided.