This commit is contained in:
bao-qian 2016-05-17 22:48:18 +01:00
parent 2858dce664
commit bb3003dc3b
2 changed files with 2 additions and 4 deletions

View File

@ -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
}

View File

@ -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);