[chore:] basic saving logging
This commit is contained in:
@@ -45,9 +45,8 @@ public class Settings
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine(ex.Message);
|
||||
Console.WriteLine(ex.StackTrace);
|
||||
Console.WriteLine("Error while reading settings. Generating new...");
|
||||
Logger.Log($"Error while reading settings. Generating new... {ex.Message}", Logger.LogType.Warning);
|
||||
|
||||
_instance = new Settings();
|
||||
}
|
||||
}
|
||||
@@ -123,9 +122,7 @@ public class Global
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine(ex.Message);
|
||||
Console.WriteLine(ex.StackTrace);
|
||||
Console.WriteLine("Error while reading global settings. Generating new...");
|
||||
Logger.Log($"Error while reading global settings. Generating new... {ex.Message}", Logger.LogType.Warning);
|
||||
_instance = new Global();
|
||||
Save();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user