From bb3003dc3b147d34a1c233089278e20fc37e3093 Mon Sep 17 00:00:00 2001 From: bao-qian Date: Tue, 17 May 2016 22:48:18 +0100 Subject: [PATCH] Misc --- Wox.Infrastructure/Logger/Log.cs | 4 ++-- Wox/App.xaml.cs | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Wox.Infrastructure/Logger/Log.cs b/Wox.Infrastructure/Logger/Log.cs index f48d7196da..3057a53530 100644 --- a/Wox.Infrastructure/Logger/Log.cs +++ b/Wox.Infrastructure/Logger/Log.cs @@ -87,11 +87,11 @@ namespace Wox.Infrastructure.Logger public static void Fatal(System.Exception e) { - var type = CallerType(); - var logger = LogManager.GetLogger(type); #if DEBUG throw e; #else + var type = CallerType(); + var logger = LogManager.GetLogger(type); logger.Fatal(ExceptionFormatter.FormatExcpetion(e)); #endif } diff --git a/Wox/App.xaml.cs b/Wox/App.xaml.cs index d2788599a0..8e121f808e 100644 --- a/Wox/App.xaml.cs +++ b/Wox/App.xaml.cs @@ -1,6 +1,5 @@ using System; using System.Diagnostics; -using System.Threading.Tasks; using System.Timers; using System.Windows; using Wox.Core; @@ -50,7 +49,6 @@ namespace Wox PluginManager.LoadPlugins(_settings.PluginSettings); var vm = new MainViewModel(_settings, storage); - var pluginsSettings = _settings.PluginSettings; var window = new MainWindow(_settings, vm); API = new PublicAPIInstance(_settings, vm); PluginManager.InitializePlugins(API);