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/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:f32aa00e-eb31-4141-bc5b-be7166050ed5 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 970E:17578:92D6D:BC7E2:698D2419 |
| html-safe-nonce | 307d0ab1422e85d3f311f6f8cde876bc2498bdbef6d438beb0b78e9131f35124 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzBFOjE3NTc4OjkyRDZEOkJDN0UyOjY5OEQyNDE5IiwidmlzaXRvcl9pZCI6IjQ0OTY0OTk0NzI2NzU0NDc4MzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 354276982630da2729bd2f422fb6f9d5edc796b3f34b70a8b2ed4e6545876b96 |
| hovercard-subject-tag | pull_request:2645593263 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/files |
| 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 | c25395580e1e3bf82d705e0982a1b24255366088720fef945f1493d5e3e67954 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1fa2bc33fc715bfb2cb9dd8a9cad4f811c16c371 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width