Skip to content
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

No handlers could be found for logger "kazoo.handlers.threading" #724

Open
zqfan opened this issue Jul 21, 2023 · 0 comments
Open

No handlers could be found for logger "kazoo.handlers.threading" #724

zqfan opened this issue Jul 21, 2023 · 0 comments

Comments

@zqfan
Copy link

zqfan commented Jul 21, 2023

No handlers could be found for logger "kazoo.handlers.threading"

after using logging.basicConfig(), it turns out

[2023-07-13 11:27:22,005] [ERROR] [3722:139833607571200] [threading.py:L130] Exception in worker queue thread
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/kazoo/handlers/threading.py", line 128, in _thread_worker
    func()
  File "/usr/lib/python2.7/site-packages/kazoo/handlers/threading.py", line 291, in <lambda>
    self.callback_queue.put(lambda: callback.func(*callback.args))
  File "/usr/local/services/myproject/src/zk.py", line 154, in leader_watch
    log.info("leader event: %s" % event)
TypeError: not all arguments converted during string formatting

but maybe it is better to has its own logger, just like kazoo.client does

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants