No handlers could be found for logger paramiko

前端 未结 2 1705
情书的邮戳
情书的邮戳 2020-12-05 19:44

I am using paramiko module for ssh connection.I am facing below problem:

No handlers could be found for logger I am not getting the reason of this problem.I tried to

2条回答
  •  遥遥无期
    2020-12-05 19:47

    I found the solution from this website.

    Basically, you just need to add a line:

    paramiko.util.log_to_file("filename.log")
    

    Then all connection will be logged to the file.

提交回复
热议问题