Skip to content

Commit

Permalink
More verbose application startup logging
Browse files Browse the repository at this point in the history
  • Loading branch information
KimihikoAkayasaki committed Feb 21, 2023
1 parent c30e87c commit af3f72d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Amethyst/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,15 @@ public App()
try
{
// Set maximum log size to 20MB for larger log files
Logger.Info("Setting maximum App Center log size...");
AppCenter.SetMaxStorageSizeAsync(20 * 1024 * 1024).ContinueWith(storageTask =>
{
// Log as an error, we can't really do much about this one after all...
if (!storageTask.Result) Logger.Error("App Center log exceeded the maximum size!");
});

// Try starting Visual Studio App Center up
Logger.Info("Starting Visual Studio App Center...");
AppCenter.Start("AZ_APPSECRET", typeof(Analytics), typeof(Crashes));

// Set the code of the language used in Windows
Expand All @@ -125,9 +127,11 @@ public App()
}

// Read saved settings
Logger.Info("Reading base app settings...");
AppData.Settings.ReadSettings();

// Read plugin settings
Logger.Info("Reading custom plugin settings...");
TrackingDevices.PluginSettings.ReadSettings();

// Run detached to allow for async calls
Expand Down

0 comments on commit af3f72d

Please sign in to comment.