Title: Fix logging bug, add access to temp_log_options(), and add logging tests. by choppsv1 · Pull Request #142 · CESNET/libyang-python · GitHub
Open Graph Title: Fix logging bug, add access to temp_log_options(), and add logging tests. by choppsv1 · Pull Request #142 · CESNET/libyang-python
X Title: Fix logging bug, add access to temp_log_options(), and add logging tests. by choppsv1 · Pull Request #142 · CESNET/libyang-python
Description: Fix bug with logging - the line arg is added as str but the fmt requires int, which causes exception when turning on python logging -- fixed. Add temp_log_options() API access - when one wishes to disable logging temporarily (e.g., when calling API functions when an error result is expected and OK), libyang provides ly_temp_log_options() -- add access to the function: ex usage: with temp_log_options(0): ly_unwanted_logging_call(); Add unit test which tests both the bugfix and the new API function.
Open Graph Description: Fix bug with logging - the line arg is added as str but the fmt requires int, which causes exception when turning on python logging -- fixed. Add temp_log_options() API access - when one wishes t...
X Description: Fix bug with logging - the line arg is added as str but the fmt requires int, which causes exception when turning on python logging -- fixed. Add temp_log_options() API access - when one wishes t...
Opengraph URL: https://github.com/CESNET/libyang-python/pull/142
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:8cd84ee7-62ec-94d9-2f03-315d429c8030 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | DA82:19836C:60B892:7ECAC5:698D409F |
| html-safe-nonce | 1adadea68cceb4a747f331c2818fc62c851d126a27570a4e8db40ccc4b3bc77e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTgyOjE5ODM2Qzo2MEI4OTI6N0VDQUM1OjY5OEQ0MDlGIiwidmlzaXRvcl9pZCI6IjYxNjM0NjI1MTQ2MDY0MjQyMjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ef01682e9d100205665c3531e4d864c508473836fb6231acc81dd274e5f27b3d |
| hovercard-subject-tag | pull_request:2645593263 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/CESNET/libyang-python/pull/142/checks |
| twitter:image | https://avatars.githubusercontent.com/u/3074665?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/3074665?s=400&v=4 |
| og:image:alt | Fix bug with logging - the line arg is added as str but the fmt requires int, which causes exception when turning on python logging -- fixed. Add temp_log_options() API access - when one wishes t... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | c0818105fa276287e9369cfdefa0a0fa7953719791ceff9b94d69623c0a4fe8a |
| turbo-cache-control | no-cache |
| go-import | github.com/CESNET/libyang-python git https://github.com/CESNET/libyang-python.git |
| octolytics-dimension-user_id | 1116469 |
| octolytics-dimension-user_login | CESNET |
| octolytics-dimension-repository_id | 275748507 |
| octolytics-dimension-repository_nwo | CESNET/libyang-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 275748507 |
| octolytics-dimension-repository_network_root_nwo | CESNET/libyang-python |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | bc912d4349851e5f32c76bbb213754e40947d7a6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width