diff --git a/Flow.Launcher.Core/Plugin/PluginManager.cs b/Flow.Launcher.Core/Plugin/PluginManager.cs index 2f45121ca..50ff27f08 100644 --- a/Flow.Launcher.Core/Plugin/PluginManager.cs +++ b/Flow.Launcher.Core/Plugin/PluginManager.cs @@ -184,10 +184,6 @@ namespace Flow.Launcher.Core.Plugin // null will be fine since the results will only be added into queue if the token hasn't been cancelled return null; } - catch (Exception e) - { - Log.Exception("PluginManager", "Exception", e); - } return results; } diff --git a/Plugins/Flow.Launcher.Plugin.Program/Logger/ProgramLogger.cs b/Plugins/Flow.Launcher.Plugin.Program/Logger/ProgramLogger.cs index 62ce539f3..cbf4960a3 100644 --- a/Plugins/Flow.Launcher.Plugin.Program/Logger/ProgramLogger.cs +++ b/Plugins/Flow.Launcher.Plugin.Program/Logger/ProgramLogger.cs @@ -20,27 +20,6 @@ namespace Flow.Launcher.Plugin.Program.Logger { public const string DirectoryName = "Logs"; - static ProgramLogger() - { - var path = Path.Combine(DataLocation.DataDirectory(), DirectoryName, Constant.Version); - if (!Directory.Exists(path)) - { - Directory.CreateDirectory(path); - } - - var configuration = new LoggingConfiguration(); - var target = new FileTarget(); - configuration.AddTarget("file", target); - target.FileName = path.Replace(@"\", "/") + "/${shortdate}.txt"; -#if DEBUG - var rule = new LoggingRule("*", LogLevel.Debug, target); -#else - var rule = new LoggingRule("*", LogLevel.Error, target); -#endif - configuration.LoggingRules.Add(rule); - LogManager.Configuration = configuration; - } - /// /// Logs an exception /// @@ -101,6 +80,7 @@ namespace Flow.Launcher.Plugin.Program.Logger { var logger = LogManager.GetLogger(""); logger.Error(e, $"fail to log exception in program logger, parts length is too small: {parts.Length}, message: {message}"); + return; } var classname = parts[0];