Skip to content

Commit 3945f88

Browse files
committed
Add changelog fragments
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
1 parent 754ce51 commit 3945f88

2 files changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
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.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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)

0 commit comments

Comments
 (0)