Update Cryville.Common.Logging.

This commit is contained in:
2023-11-20 20:21:21 +08:00
parent e2c58c708f
commit c2e94afc1c
24 changed files with 280 additions and 140 deletions

View File

@@ -13,7 +13,6 @@ using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
using UnityEngine;
using Logger = Cryville.Common.Logging.Logger;
using ThreadPriority = System.Threading.ThreadPriority;
namespace Cryville.Crtr.Network {
@@ -39,10 +38,10 @@ namespace Cryville.Crtr.Network {
void ThreadLogic() {
try {
CheckVersion();
Logger.Log("main", 0, "Network", "Update checker exited normally");
Game.MainLogger.Log(0, "Network", "Update checker exited normally");
}
catch (Exception ex) {
Logger.Log("main", 4, "Network", "An error occurred while checking for update: {0}", ex);
Game.MainLogger.Log(4, "Network", "An error occurred while checking for update: {0}", ex);
Dialog.Show(null, "Failed to check for update.");
}
}