Debug option for Python SFTP script like ftp_setdebug(1) to log messages
问题 I am working on bash and internally calling python Script for SFTP using PYSFTP. Previously when I used FTP there was a ftp_setdebug(1) option so that I can check the Transfer and goodbye messages. But for SFTP I am not able to find any such option. I found sftp -vv but how exactly does one need to use it? Is there any other method like FTP? I don't want to include any print statements in the script. 回答1: The API of pysftp mentions that you can add a log=True to the Connection to log to a