File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ Fixed log level mapping to cover whole libssh range -- by :user: `Jakuje `.
2+
3+ Previously, it was not possible to set the most verbose libssh ``log `` level
4+ ``SSH_LOG_TRACE `` to get most verbose log messages useful for debugging
5+ connection issues.
Original file line number Diff line number Diff line change 1+ Made libssh use the Python :mod: `python:logging ` system -- by :user: `Jakuje `.
2+
3+ Previously, the logging was done by underlying C-code to stderr instead,
4+ which caused inconsistent behavior.
5+
6+ The default log level is now set to :data: `ANSIBLE_PYLIBSSH_TRACE `
7+ and donstream loggers are able to trim the verbosity down.
8+ If you need a performance, you can avoid logging on the libssh
9+ side at source by setting lower logging value, for example:
10+
11+ .. code-block :: python
12+
13+ ssh_session.set_log_level(ANSIBLE_PYLIBSSH_NOLOG )
14+
15+ The log level can be now set also through the session constructor:
16+
17+ .. code-block :: python
18+
19+ ssh = Session(log_verbosity = ANSIBLE_PYLIBSSH_TRACE )
20+
21+
22+ or connect() arguments:
23+
24+ .. code-block :: python
25+
26+ ssh.connect(log_verbosity = ANSIBLE_PYLIBSSH_TRACE )
You can’t perform that action at this time.
0 commit comments