Use separate module loggers instead of a single 'kafka' logger

This commit is contained in:
Dana Powers
2015-06-05 23:42:07 -07:00
parent 6406747f37
commit 5d9b174cad
9 changed files with 17 additions and 9 deletions

View File

@@ -21,7 +21,8 @@ from kafka.util import (
write_short_string, write_int_string, group_by_topic_and_partition
)
log = logging.getLogger("kafka")
log = logging.getLogger(__name__)
ATTRIBUTE_CODEC_MASK = 0x03
CODEC_NONE = 0x00