Skip to content

Commit 7121d8a

Browse files
committed
Fix the log levels mapping
The libssh provides the most verbose logging with SSH_LOG_TRACE, which was not mapped to any of the standard values so the users are unable to get full debug logs. These are critical for libssh developers to be able to investigate issues.
1 parent c99b7dd commit 7121d8a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/pylibsshext/session.pyx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,12 @@ OPTS_DIR_MAP = {
4646

4747
LOG_MAP = {
4848
logging.NOTSET: libssh.SSH_LOG_NONE,
49-
logging.DEBUG: libssh.SSH_LOG_DEBUG,
49+
logging.DEBUG: libssh.SSH_LOG_TRACE,
50+
15: libssh.SSH_LOG_DEBUG,
5051
logging.INFO: libssh.SSH_LOG_INFO,
5152
logging.WARNING: libssh.SSH_LOG_WARN,
5253
logging.ERROR: libssh.SSH_LOG_WARN,
53-
logging.CRITICAL: libssh.SSH_LOG_TRACE
54+
logging.CRITICAL: libssh.SSH_LOG_WARN
5455
}
5556

5657
KNOW_HOST_MSG_MAP = {

0 commit comments

Comments
 (0)