Better error logging. MessageBoxAlertAdmin to make it easier for users to report errors

This commit is contained in:
Robert McRackan 2021-07-20 14:27:27 -04:00
parent 1ba54a74af
commit c49edbc77b
13 changed files with 348 additions and 33 deletions

View file

@ -259,7 +259,11 @@ namespace FileManager
var endingContents = JsonConvert.SerializeObject(jObj, Formatting.Indented);
if (startingContents != endingContents)
{
try { Serilog.Log.Logger.Information("Libation files changed {@DebugInfo}", new { APPSETTINGS_JSON, LIBATION_FILES_KEY, directory }); }
catch { }
File.WriteAllText(APPSETTINGS_JSON, endingContents);
}
return true;