Skip to content

Commit 1e56722

Browse files
riedelulyssessouza
authored andcommitted
set logging level of paramiko to warn
Signed-off-by: Till Riedel <[email protected]>
1 parent 6649587 commit 1e56722

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docker/transport/sshconn.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import paramiko
22
import requests.adapters
33
import six
4+
import logging
45

56
from docker.transport.basehttpadapter import BaseHTTPAdapter
67
from .. import constants
@@ -77,6 +78,7 @@ class SSHHTTPAdapter(BaseHTTPAdapter):
7778

7879
def __init__(self, base_url, timeout=60,
7980
pool_connections=constants.DEFAULT_NUM_POOLS):
81+
logging.getLogger("paramiko").setLevel(logging.WARNING)
8082
self.ssh_client = paramiko.SSHClient()
8183
self.ssh_client.load_system_host_keys()
8284

0 commit comments

Comments
 (0)