summaryrefslogtreecommitdiff
path: root/test/test_conn.py
diff options
context:
space:
mode:
authorDana Powers <dana.powers@gmail.com>2015-06-09 14:21:13 -0700
committerDana Powers <dana.powers@gmail.com>2015-06-09 14:21:13 -0700
commita74fa06b56584b05a3f2789e4643b83eca4e0b4b (patch)
treeb7d69313ac30c03545a6aa89ba9414e6f75abffe /test/test_conn.py
parent742cd5ee249c3ad315e97ec389019a11bf1f64ea (diff)
parent0e416d528767a1246c72ae1efa917e401cedd79f (diff)
downloadkafka-python-a74fa06b56584b05a3f2789e4643b83eca4e0b4b.tar.gz
Merge pull request #397 from dpkp/test_logging
Test logging
Diffstat (limited to 'test/test_conn.py')
-rw-r--r--test/test_conn.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_conn.py b/test/test_conn.py
index c4f219b..6e47cc8 100644
--- a/test/test_conn.py
+++ b/test/test_conn.py
@@ -1,3 +1,4 @@
+import logging
import socket
import struct
from threading import Thread
@@ -10,6 +11,10 @@ from kafka.conn import KafkaConnection, collect_hosts, DEFAULT_SOCKET_TIMEOUT_SE
class ConnTest(unittest.TestCase):
def setUp(self):
+
+ # kafka.conn debug logging is verbose, so only enable in conn tests
+ logging.getLogger('kafka.conn').setLevel(logging.DEBUG)
+
self.config = {
'host': 'localhost',
'port': 9090,