mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 09:50:43 -05:00
Add additional logging
This commit is contained in:
parent
4b0ebbe597
commit
4d9e340122
@ -35,6 +35,11 @@ namespace Aki.Common.Utils
|
|||||||
Log(source, message, EServerLogLevel.Info);
|
Log(source, message, EServerLogLevel.Info);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void Debug(string source, string message)
|
||||||
|
{
|
||||||
|
Log(source, message, EServerLogLevel.Debug);
|
||||||
|
}
|
||||||
|
|
||||||
public static void Log(
|
public static void Log(
|
||||||
string source,
|
string source,
|
||||||
string message,
|
string message,
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
using Microsoft.Win32;
|
using Aki.Common.Utils;
|
||||||
|
using BepInEx.Logging;
|
||||||
|
using Microsoft.Win32;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace Aki.Core.Utils
|
namespace Aki.Core.Utils
|
||||||
@ -15,6 +17,7 @@ namespace Aki.Core.Utils
|
|||||||
var v1 = Registry.LocalMachine.OpenSubKey(c0, false).GetValue("UninstallString");
|
var v1 = Registry.LocalMachine.OpenSubKey(c0, false).GetValue("UninstallString");
|
||||||
var v2 = (v1 != null) ? v1.ToString() : string.Empty;
|
var v2 = (v1 != null) ? v1.ToString() : string.Empty;
|
||||||
var v3 = new FileInfo(v2);
|
var v3 = new FileInfo(v2);
|
||||||
|
ServerLog.Debug("Aki.Core", v2);
|
||||||
var v4 = new FileInfo[]
|
var v4 = new FileInfo[]
|
||||||
{
|
{
|
||||||
v3,
|
v3,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user