Skip to content

Commit

Permalink
set logging level of paramiko to warn
Browse files Browse the repository at this point in the history
Signed-off-by: Till Riedel <riedel@teco.edu>
  • Loading branch information
riedel authored and ndeloof committed Oct 16, 2019
1 parent 8077d80 commit 2dc569a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker/transport/sshconn.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import paramiko
import requests.adapters
import six
import logging

from docker.transport.basehttpadapter import BaseHTTPAdapter
from .. import constants
Expand Down Expand Up @@ -77,6 +78,7 @@ class SSHHTTPAdapter(BaseHTTPAdapter):

def __init__(self, base_url, timeout=60,
pool_connections=constants.DEFAULT_NUM_POOLS):
logging.getLogger("paramiko").setLevel(logging.WARNING)
self.ssh_client = paramiko.SSHClient()
self.ssh_client.load_system_host_keys()

Expand Down

0 comments on commit 2dc569a

Please sign in to comment.