diff options
author | Dana Powers <dana.powers@rd.io> | 2015-06-08 23:05:55 -0700 |
---|---|---|
committer | Dana Powers <dana.powers@rd.io> | 2015-06-08 23:05:55 -0700 |
commit | 432590550d745eb1eda49ac12d2f8a3dca01111d (patch) | |
tree | ac9933bdcf76249621b6e9af320fd7ff6075053b /test/test_conn.py | |
parent | b22ac148aa75e8e07075404bbfe98193641c1827 (diff) | |
download | kafka-python-432590550d745eb1eda49ac12d2f8a3dca01111d.tar.gz |
Reduce log chatter in tests (only debug kafka.conn in test_conn)
Diffstat (limited to 'test/test_conn.py')
-rw-r--r-- | test/test_conn.py | 5 |
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, |