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
}