ftp: do not log + gzip:`isloaded

This commit is contained in:
Yuki 2023-10-20 01:41:54 -04:00
parent 99907740ca
commit 28df600466
2 changed files with 5 additions and 3 deletions

View File

@ -28,11 +28,13 @@ class GzipMediaHandler : MediaHandler
public override void Render() public override void Render()
{ {
newHandler.Render(); if(newHandler?.IsLoaded ?? false)
newHandler.Render();
} }
public override void MenuBar() public override void MenuBar()
{ {
newHandler.MenuBar(); if(newHandler?.IsLoaded ?? false)
newHandler.MenuBar();
} }
} }

View File

@ -40,7 +40,7 @@ class FtpProtoHandler : ProtoHandler
conn.Config.ValidateAnyCertificate = true; conn.Config.ValidateAnyCertificate = true;
} }
conn.Config.LogToConsole = true; conn.Config.LogToConsole = false;
conn.Config.LogHost = true; conn.Config.LogHost = true;
conn.Config.LogUserName = true; conn.Config.LogUserName = true;
conn.Config.LogPassword = true; conn.Config.LogPassword = true;