From 28df600466f8f694415957e6ee479b86cc79884f Mon Sep 17 00:00:00 2001 From: juju2143 Date: Fri, 20 Oct 2023 01:41:54 -0400 Subject: [PATCH] ftp: do not log + gzip:`isloaded --- Media/GzipMediaHandler.cs | 6 ++++-- Protocols/FtpProtoHandler.cs | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Media/GzipMediaHandler.cs b/Media/GzipMediaHandler.cs index 7853f4b..3a11fc5 100644 --- a/Media/GzipMediaHandler.cs +++ b/Media/GzipMediaHandler.cs @@ -28,11 +28,13 @@ class GzipMediaHandler : MediaHandler public override void Render() { - newHandler.Render(); + if(newHandler?.IsLoaded ?? false) + newHandler.Render(); } public override void MenuBar() { - newHandler.MenuBar(); + if(newHandler?.IsLoaded ?? false) + newHandler.MenuBar(); } } \ No newline at end of file diff --git a/Protocols/FtpProtoHandler.cs b/Protocols/FtpProtoHandler.cs index 6cb80e8..fcae527 100644 --- a/Protocols/FtpProtoHandler.cs +++ b/Protocols/FtpProtoHandler.cs @@ -40,7 +40,7 @@ class FtpProtoHandler : ProtoHandler conn.Config.ValidateAnyCertificate = true; } - conn.Config.LogToConsole = true; + conn.Config.LogToConsole = false; conn.Config.LogHost = true; conn.Config.LogUserName = true; conn.Config.LogPassword = true;