mirror of https://github.com/docker/docker-py.git
set logging level of paramiko to warn
Signed-off-by: Till Riedel <riedel@teco.edu>
This commit is contained in:
parent
8077d80118
commit
2dc569a232
|
|
@ -1,6 +1,7 @@
|
||||||
import paramiko
|
import paramiko
|
||||||
import requests.adapters
|
import requests.adapters
|
||||||
import six
|
import six
|
||||||
|
import logging
|
||||||
|
|
||||||
from docker.transport.basehttpadapter import BaseHTTPAdapter
|
from docker.transport.basehttpadapter import BaseHTTPAdapter
|
||||||
from .. import constants
|
from .. import constants
|
||||||
|
|
@ -77,6 +78,7 @@ class SSHHTTPAdapter(BaseHTTPAdapter):
|
||||||
|
|
||||||
def __init__(self, base_url, timeout=60,
|
def __init__(self, base_url, timeout=60,
|
||||||
pool_connections=constants.DEFAULT_NUM_POOLS):
|
pool_connections=constants.DEFAULT_NUM_POOLS):
|
||||||
|
logging.getLogger("paramiko").setLevel(logging.WARNING)
|
||||||
self.ssh_client = paramiko.SSHClient()
|
self.ssh_client = paramiko.SSHClient()
|
||||||
self.ssh_client.load_system_host_keys()
|
self.ssh_client.load_system_host_keys()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue