Skip to content

Commit

Permalink
Increase urllib3 log severity to avoid log spam from EtcdWatcher.
Browse files Browse the repository at this point in the history
  • Loading branch information
fasaxc committed Sep 19, 2016
1 parent d457e6c commit 195a90f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions calico/etcdutils.py
Expand Up @@ -32,6 +32,9 @@

_log = logging.getLogger(__name__)

# Since this module does long-polling, we expect read timeouts from etcd but
# urllib3 logs timeouts at warning level. Disable that to avoid log spam.
logging.getLogger("urllib3").setLevel(logging.ERROR)

# Map etcd event actions to the effects we care about.
ACTION_MAPPING = {
Expand Down

0 comments on commit 195a90f

Please sign in to comment.