Skip to content

Commit eaca9ed

Browse files
authored
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 ba0797c commit eaca9ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pylibsshext/session.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ 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,
5050
logging.INFO: libssh.SSH_LOG_INFO,
5151
logging.WARNING: libssh.SSH_LOG_WARN,
5252
logging.ERROR: libssh.SSH_LOG_WARN,
53-
logging.CRITICAL: libssh.SSH_LOG_TRACE
53+
logging.CRITICAL: libssh.SSH_LOG_WARN
5454
}
5555

5656
KNOW_HOST_MSG_MAP = {

0 commit comments

Comments
 (0)