Title: Error when initializing queue listener from config file · Issue #92929 · python/cpython · GitHub
Open Graph Title: Error when initializing queue listener from config file · Issue #92929 · python/cpython
X Title: Error when initializing queue listener from config file · Issue #92929 · python/cpython
Description: I'm loading a logger from a yaml config file. I noticed that a custom handler that I named "sql" was not initializing. It is a number of handlers that I have connected to a queue listener that I named "queue_listener" also loading from t...
Open Graph Description: I'm loading a logger from a yaml config file. I noticed that a custom handler that I named "sql" was not initializing. It is a number of handlers that I have connected to a queue listener that I na...
X Description: I'm loading a logger from a yaml config file. I noticed that a custom handler that I named "sql" was not initializing. It is a number of handlers that I have connected to a queue list...
Opengraph URL: https://github.com/python/cpython/issues/92929
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error when initializing queue listener from config file","articleBody":"I'm loading a logger from a yaml config file.\r\nI noticed that a custom handler that I named \"sql\" was not initializing.\r\nIt is a number of handlers that I have connected to a queue listener that I named \"queue_listener\" also loading from the file.\r\nI noticed that it left the sql handler as \u003cclass 'logging.config.ConvertingDict'\u003e when it added it to the listener instead of resolving it.\r\nSo then it would error later with:\r\nprocess = record.levelno \u003e= handler.level\r\nAttributeError: 'ConvertingDict' object has no attribute 'level'\r\n\r\nI tried a multitude of things that did not work so I looked at the logging config.py to see what I was doing wrong with the values I was sending in.\r\nI noticed that in line 563 that it imported the handlers sorted from the config file, ascending alphabetical order.\r\nI tested naming my queue listener, \"z_queue_listener\" and then everything worked fine.\r\nI think it would probably be best to pull the handlers in order that they are in the config file to avoid this error.\r\nI also tested and reproduced this error with the built in logging handler types as well.","author":{"url":"https://github.com/djsaroka","@type":"Person","name":"djsaroka"},"datePublished":"2022-05-18T15:52:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/92929/cpython/issues/92929"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d3f55883-40ae-c7a8-7ae5-513c063c91f8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E682:87739:F0258C:15026F5:696A329B |
| html-safe-nonce | b75ff9d1e91cc1594a289245b862fda49ecec53b6bbcd35f26772d522c41a0aa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjgyOjg3NzM5OkYwMjU4QzoxNTAyNkY1OjY5NkEzMjlCIiwidmlzaXRvcl9pZCI6IjYzMTc1MDcxNzc0NDIwNjMwMDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d0c39a5ba7a3dbca5c8ef530e6db63bd9b49ded2c5a9ee13063e872df1b70e29 |
| hovercard-subject-tag | issue:1240168392 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python/cpython/92929/issue_layout |
| twitter:image | https://opengraph.githubassets.com/657ce4ec1336840e2b1083041437d1e6991564712858db7e89eab7f40441d0e2/python/cpython/issues/92929 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/657ce4ec1336840e2b1083041437d1e6991564712858db7e89eab7f40441d0e2/python/cpython/issues/92929 |
| og:image:alt | I'm loading a logger from a yaml config file. I noticed that a custom handler that I named "sql" was not initializing. It is a number of handlers that I have connected to a queue listener that I na... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | djsaroka |
| hostname | github.com |
| expected-hostname | github.com |
| None | 321736bfdb3f591415ae895a0459bec204b26a76caf47ba5c980634cfacc4538 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7a9163cefd1ea4bd06f8eb7c082f43e4e53f626f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width