From 7183bea41265a901314e5e5853e3db5188609b5a Mon Sep 17 00:00:00 2001 From: ryanbodrug-microsoft <56318517+ryanbodrug-microsoft@users.noreply.github.com> Date: Tue, 24 Mar 2020 16:01:37 -0700 Subject: [PATCH] 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. --- src/modules/launcher/Wox.Infrastructure/Logger/Log.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/modules/launcher/Wox.Infrastructure/Logger/Log.cs b/src/modules/launcher/Wox.Infrastructure/Logger/Log.cs index 349920076c..611265baa4 100644 --- a/src/modules/launcher/Wox.Infrastructure/Logger/Log.cs +++ b/src/modules/launcher/Wox.Infrastructure/Logger/Log.cs @@ -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 } /// example: "|prefix|unprefixed"