Better error logging. MessageBoxAlertAdmin to make it easier for users to report errors
This commit is contained in:
parent
1ba54a74af
commit
c49edbc77b
13 changed files with 348 additions and 33 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue