Skip to content

Commit 5c7382a

Browse files
authored
libssh: Use more verbose logging
The `INFO` log level is usually not enough to get useful information from the libssh regarding the low-level issues that we would like to be able to resolve. This can be made even more fine grained, but I do not think less verbose logs would be much useful anyway. Related is the issue in pylibssh, which maps the DEBUG verbosity to something that is not debug in libssh itself: ansible/pylibssh#597
1 parent 569f662 commit 5c7382a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/connection/libssh.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ def _connect_uncached(self):
376376
self.ssh = Session()
377377

378378
if display.verbosity > 3:
379-
self.ssh.set_log_level(logging.INFO)
379+
self.ssh.set_log_level(logging.DEBUG)
380380

381381
self.keyfile = os.path.expanduser("~/.ssh/known_hosts")
382382

0 commit comments

Comments
 (0)