All wox exceptions in debug are getting rethrown, and thus causing the app to crash. This change removes the debug specific code and allows exceptions to be handled the same was as release.

This commit is contained in:
ryanbodrug-microsoft 2020-03-24 16:01:37 -07:00
parent 6e2ad28676
commit 7183bea412

View File

@ -126,9 +126,6 @@ namespace Wox.Infrastructure.Logger
[MethodImpl(MethodImplOptions.Synchronized)]
public static void Exception(string message, System.Exception e)
{
#if DEBUG
throw e;
#else
if (FormatValid(message))
{
var parts = message.Split('|');
@ -140,7 +137,6 @@ namespace Wox.Infrastructure.Logger
{
LogFaultyFormat(message);
}
#endif
}
/// <param name="message">example: "|prefix|unprefixed" </param>