Skip to content

Commit a70615d

Browse files
committed
Add production logging
1 parent 31dd774 commit a70615d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Wox.Core/Configuration/Portable.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,13 @@ public void DisablePortableMode()
3434
}
3535
catch (Exception e)
3636
{
37-
//log and update error message to output above locations where shortcuts may not have been removed
3837
#if DEBUG
3938
portabilityUpdater.Dispose();
4039
throw;
4140
#else
4241
portabilityUpdater.Dispose();
43-
throw;// PRODUCTION LOGGING AND CONTINUE
44-
42+
Log.Exception("Portable", "Error occured while disabling portable mode", e);
43+
throw;
4544
#endif
4645
}
4746
}
@@ -66,14 +65,13 @@ public void EnablePortableMode()
6665
}
6766
catch (Exception e)
6867
{
69-
//log and update error message to output above locations where shortcuts may not have been removed
7068
#if DEBUG
7169
portabilityUpdater.Dispose();
7270
throw;
7371
#else
7472
portabilityUpdater.Dispose();
75-
throw;// PRODUCTION LOGGING AND CONTINUE
76-
73+
Log.Exception("Portable", "Error occured while enabling portable mode", e);
74+
throw;
7775
#endif
7876
}
7977
}

0 commit comments

Comments
 (0)