Currently, at INFO log level, both *SSHConnections print the full options dict.
atex.connection.ssh.0: connecting: {'LogLevel': 'ERROR', 'StrictHostKeyChecking': 'no', 'UserKnownHostsFile': '/dev/null', 'ConnectionAttempts': 1000, 'ServerAliveCountMax': 4, 'ServerAliveInterval': 30, 'TCPKeepAlive': 'no', 'EscapeChar': 'none', 'ExitOnForwardFailure': 'yes', 'IdentitiesOnly': 'yes', 'GSSAPIAuthentication': 'no', 'RequestTTY': 'no', 'Hostname': '1.2.3.4', 'User': 'root', 'Port': '22', 'IdentityFile': PosixPath('/home/comps/.ssh/id_rsa'), 'Compression': 'yes'}
While this might be useful for DEBUG log level (or maybe not even that), we should likely parse just the user-passed options (not merged with all default ones) and print only that, in some better format.
Maybe like this?
atex.connection.ssh.0: connecting: Hostname=1.2.3.4 Port=22 User=root IdentityFile=/home/comps/.ssh/id_rsa
Any whitespace-less options are printed as key=value, any whitespace-containing options as key="value with spaces".
Currently, at
INFOlog level, both *SSHConnections print the full options dict.While this might be useful for
DEBUGlog level (or maybe not even that), we should likely parse just the user-passed options (not merged with all default ones) and print only that, in some better format.Maybe like this?
Any whitespace-less options are printed as
key=value, any whitespace-containing options askey="value with spaces".