ITADN

Consider normalization of log levels passed to set_log_level()

#800OpenJakuje 创建于 2026-02-17
J
Jakujecommented
The #597 implements configuring specific libssh log levels, but it would be good to be able to accept arbitrary values from the python logging system range and normalize to closest value somehow. Looks like this is untested. But also, it might make more sense to allow arbitrary levels to be normalized to the closest known value as the Python logging infra does not have a problem with intermediate logging levels as long as they are integers. _Originally posted by @webknjaz in https://github.com/ansible/pylibssh/pull/597#discussion_r2813078766_
0 条评论