mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Add production logging
This commit is contained in:
parent
31dd774d75
commit
a70615d79f
1 changed files with 4 additions and 6 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue