Add production logging

This commit is contained in:
Jeremy Wu 2020-03-08 14:43:08 +11:00
parent 31dd774d75
commit a70615d79f

View file

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