Skip to content

Instantly share code, notes, and snippets.

@harlowja
Created November 11, 2015 23:04
Show Gist options
  • Save harlowja/edb99afc0e603dded908 to your computer and use it in GitHub Desktop.
Save harlowja/edb99afc0e603dded908 to your computer and use it in GitHub Desktop.
>>> from kazoo import client
>>> import logging
>>> logging.basicConfig(level=5)
>>>
>>> c = client.KazooClient()
>>> c.start()
Level 5:kazoo.client:ZK loop started
Level 5:kazoo.client:Skipping state change
INFO:kazoo.client:Connecting to 127.0.0.1:2181
Level 5:kazoo.client: Using session_id: None session_passwd: 00000000000000000000000000000000
DEBUG:kazoo.client:Sending request(xid=None): Connect(protocol_version=0, last_zxid_seen=0, time_out=10000, session_id=0, passwd='\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', read_only=None)
Level 5:kazoo.client:Read response Connect(protocol_version=0, last_zxid_seen=0, time_out=10000, session_id=94464348327575741, passwd='"\xa0UER\xcb\x87\x00\x95\x90\xdd\x94P\x7f\xe1\xf0', read_only=False)
Level 5:kazoo.client:Session created, session_id: 94464348327575741 session_passwd: 22a0554552cb87009590dd94507fe1f0
negotiated session timeout: 10000
connect timeout: 10000
read timeout: 6666.66666667
INFO:kazoo.client:Zookeeper connection established, state: CONNECTED
>>> Level 5:kazoo.client:Sending request(xid=-2): Ping()
Level 5:kazoo.client:Received Ping
Level 5:kazoo.client:Sending request(xid=-2): Ping()
Level 5:kazoo.client:Received Ping
Level 5:kazoo.client:Sending request(xid=-2): Ping()
Level 5:kazoo.client:Received Ping
Level 5:kazoo.client:Sending request(xid=-2): Ping()
Level 5:kazoo.client:Received Ping
Level 5:kazoo.client:Sending request(xid=-2): Ping()
Level 5:kazoo.client:Received Ping
Level 5:kazoo.client:Sending request(xid=-2): Ping()
Level 5:kazoo.client:Received Ping
Level 5:kazoo.client:Sending request(xid=-2): Ping()
Level 5:kazoo.client:Received Ping
Level 5:kazoo.client:Sending request(xid=-2): Ping()
Level 5:kazoo.client:Received Ping
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment