Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
use logging.NullHandler to kill nuisance messages about no handlers f…
Browse files Browse the repository at this point in the history
…ound. fixes #772
  • Loading branch information
emmettbutler committed Feb 28, 2018
1 parent 2fe939b commit 6d304c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pykafka/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import logging

from .broker import Broker
from .simpleconsumer import SimpleConsumer
from .cluster import Cluster
Expand All @@ -16,3 +18,5 @@
__all__ = ["Broker", "SimpleConsumer", "Cluster", "Partition", "Producer",
"Topic", "SslConfig", "KafkaClient", "BalancedConsumer",
"ManagedBalancedConsumer", "RangeProtocol", "RoundRobinProtocol"]

logging.getLogger(__name__).addHandler(logging.NullHandler())

0 comments on commit 6d304c4

Please sign in to comment.