-
Notifications
You must be signed in to change notification settings - Fork 112
[CLIENT-2740] Fix bug where LOG_LEVEL_OFF causes more logs to be produced (as if LOG_LEVEL_TRACE was set) #572
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
Conversation
Added support for None parameter in set_log_handler Added a loggging example
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #572 +/- ##
==========================================
+ Coverage 83.31% 83.55% +0.23%
==========================================
Files 99 99
Lines 14423 14438 +15
==========================================
+ Hits 12017 12063 +46
+ Misses 2406 2375 -31 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Added test coverage for missing coverage lines
* [CLIENT-3793] Remove macOS 13 support (#846) * Auto-bump version to 18.1.0rc3.dev1 [skip ci] * [CLIENT-3106] Remove dead code in conversions.c (#817) - record_to_resultpyobject() was a helper function for client.batch_get_ops(), which is now removed. - record_to_pyobject_cnvt_list_to_map() and as_list_of_map_to_py_tuple_list(): these were helper functions that were used before Python client version 2.1.3 to return the result of certain map operations. They are no longer used starting from Python client 2.1.3 and higher, so it is safe to remove - bin_strict_type_checking() isn't used anywhere. But it would be good to consolidate the bin checking code into one place, since it is currently spread out all over the codebase - as_batch_read_results_to_pyobject() was used by get_many() which has been removed - batch_read_records_to_pyobject() was used by select_many() which has been removed Extra Changes Merge do_*_to_pyobject() methods into their calling methods, since they have the same function signature * Auto-bump version to 18.1.0rc3.dev2 [skip ci] --------- Co-authored-by: Julian Nguyen <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
# Conflicts: # .github/workflows/stage-tests.yml # README.rst # VERSION
….set_log_level. Remove code example since we already have top level example
…p track of whether LOG_LEVEL_OFF is set to simplify
…on decides to use block buffering for stdout
dwelch-spike
left a comment
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.
Looking good, mainly want to make sure that the custom logging handler ref counting is correct. See comments.
|
The sphinx linkcheck is failing due to false positives, not related to this PR |
Co-authored-by: dwelch-spike <[email protected]>
dwelch-spike
left a comment
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.
LGTM
Extra changes:
TODO
potential memory leak inAerospike_Set_Log_Handlerwhere replacing an existing log handler will cause a ref count leakDocs
https://aerospike-python-client--572.org.readthedocs.build/en/572/aerospike.html#