Commit 7a8b85d7 authored by ibuler's avatar ibuler

[Update] 优化log

parent a6c63178
......@@ -139,12 +139,11 @@ class SSHConnection:
key_fingerprint = get_private_key_fingerprint(
system_user.private_key
)
logger.error("Connect {}@{}:{} auth failed, password: \
{}, key: {}".format(
msg = "Connect {}@{}:{} auth failed, password: {}, key: {}".format(
system_user.username, asset.ip, asset.ssh_port,
password_short, key_fingerprint,
))
)
logger.error(msg)
error += '\r\n' + str(e) if error else str(e)
ssh, sock, error = None, None, error
self.client = ssh
......
......@@ -19,7 +19,7 @@ itsdangerous==0.24
Jinja2==2.10.1
jmespath==0.9.3
jms-storage==0.0.23
jumpserver-python-sdk==0.0.64
jumpserver-python-sdk==0.0.65
MarkupSafe==1.0
oss2==2.4.0
paramiko==2.4.2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment