From 4d9e340122866f1b74cf0a470d7dd4dcf596b0a6 Mon Sep 17 00:00:00 2001 From: Dev Date: Sun, 12 Nov 2023 13:52:54 +0000 Subject: [PATCH] Add additional logging --- project/Aki.Common/Utils/ServerLog.cs | 5 +++++ project/Aki.Core/Utils/ValidationUtil.cs | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/project/Aki.Common/Utils/ServerLog.cs b/project/Aki.Common/Utils/ServerLog.cs index bd549dd..202b806 100644 --- a/project/Aki.Common/Utils/ServerLog.cs +++ b/project/Aki.Common/Utils/ServerLog.cs @@ -35,6 +35,11 @@ namespace Aki.Common.Utils Log(source, message, EServerLogLevel.Info); } + public static void Debug(string source, string message) + { + Log(source, message, EServerLogLevel.Debug); + } + public static void Log( string source, string message, diff --git a/project/Aki.Core/Utils/ValidationUtil.cs b/project/Aki.Core/Utils/ValidationUtil.cs index 7c98fc2..bb079aa 100644 --- a/project/Aki.Core/Utils/ValidationUtil.cs +++ b/project/Aki.Core/Utils/ValidationUtil.cs @@ -1,4 +1,6 @@ -using Microsoft.Win32; +using Aki.Common.Utils; +using BepInEx.Logging; +using Microsoft.Win32; using System.IO; namespace Aki.Core.Utils @@ -15,6 +17,7 @@ namespace Aki.Core.Utils var v1 = Registry.LocalMachine.OpenSubKey(c0, false).GetValue("UninstallString"); var v2 = (v1 != null) ? v1.ToString() : string.Empty; var v3 = new FileInfo(v2); + ServerLog.Debug("Aki.Core", v2); var v4 = new FileInfo[] { v3,