fix: Log all silent exceptions

This commit is contained in:
Gustave Monce
2024-08-30 21:43:30 +02:00
parent 350b6e8f1e
commit c21692491d
20 changed files with 224 additions and 51 deletions
+16 -4
View File
@@ -101,7 +101,10 @@ namespace WPinternals
PhoneNotifier.CurrentInterface = PhoneInterfaces.Lumia_Flash;
PhoneNotifier.NotifyArrival();
}
catch { }
catch (Exception ex)
{
LogFile.LogException(ex, LogType.FileOnly);
}
}
}
@@ -472,7 +475,10 @@ namespace WPinternals
CurrentMode = PhoneInterfaces.Lumia_Flash;
PhoneNotifier.NotifyArrival();
}
catch { }
catch (Exception ex)
{
LogFile.LogException(ex, LogType.FileOnly);
}
}
if (CurrentMode == TargetMode)
@@ -556,7 +562,10 @@ namespace WPinternals
{
FlashModel.SwitchToFlashAppContext();
}
catch { }
catch (Exception ex)
{
LogFile.LogException(ex, LogType.FileOnly);
}
}
PhoneInfo Info = FlashModel.ReadPhoneInfo(ExtendedInfo: true);
@@ -641,7 +650,10 @@ namespace WPinternals
{
FlashModel.SwitchToFlashAppContext();
}
catch { }
catch (Exception ex)
{
LogFile.LogException(ex, LogType.FileOnly);
}
}
PhoneInfo Info = FlashModel.ReadPhoneInfo(ExtendedInfo: false);