giampaolo / pyftpdlib

Extremely fast and scalable Python FTP server library
MIT License
1.65k stars 265 forks source link

How to custom logging #589

Closed wfeng66 closed 1 day ago

wfeng66 commented 1 year ago

Hello,

I appreciate your great job. It's a nice product.

The password in log is marked out. How can I change it to show the password? The second is I need to extract some information in the datagram, for instance, TTL. Where would be a good place to extract and log?

Thanks, Wei

giampaolo commented 1 day ago

Password is hidden on purpose: https://github.com/giampaolo/pyftpdlib/blob/3d3ef0ba04d5b0b06711413415b391eaefa42bb4/pyftpdlib/handlers.py#L1591-L1594 If you want to show it you have to do it in your own FTPHandler subclass.