From a70615d79f8daea3bdce4ff0e778438aa4814c0a Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Sun, 8 Mar 2020 14:43:08 +1100 Subject: [PATCH] Add production logging --- Wox.Core/Configuration/Portable.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Wox.Core/Configuration/Portable.cs b/Wox.Core/Configuration/Portable.cs index 83b8b15a1..bd42380c6 100644 --- a/Wox.Core/Configuration/Portable.cs +++ b/Wox.Core/Configuration/Portable.cs @@ -34,14 +34,13 @@ namespace Wox.Core.Configuration } catch (Exception e) { - //log and update error message to output above locations where shortcuts may not have been removed #if DEBUG portabilityUpdater.Dispose(); throw; #else portabilityUpdater.Dispose(); - throw;// PRODUCTION LOGGING AND CONTINUE - + Log.Exception("Portable", "Error occured while disabling portable mode", e); + throw; #endif } } @@ -66,14 +65,13 @@ namespace Wox.Core.Configuration } catch (Exception e) { - //log and update error message to output above locations where shortcuts may not have been removed #if DEBUG portabilityUpdater.Dispose(); throw; #else portabilityUpdater.Dispose(); - throw;// PRODUCTION LOGGING AND CONTINUE - + Log.Exception("Portable", "Error occured while enabling portable mode", e); + throw; #endif } }