Skip to content

Commit

Permalink
libssh: Use more verbose logging
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Jakuje authored May 23, 2024
1 parent 569f662 commit 5c7382a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/connection/libssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ def _connect_uncached(self):
self.ssh = Session()

if display.verbosity > 3:
self.ssh.set_log_level(logging.INFO)
self.ssh.set_log_level(logging.DEBUG)

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

Expand Down

0 comments on commit 5c7382a

Please sign in to comment.