mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 17:57:21 +01:00
remove Penumbra dependency and use nuget, minor internal refactoring of structs, more resilent downloads
This commit is contained in:
parent
5263ab839b
commit
ffd896168c
13 changed files with 58 additions and 105 deletions
|
|
@ -2,6 +2,7 @@
|
|||
using System.Diagnostics;
|
||||
using Dalamud.Logging;
|
||||
using Dalamud.Utility;
|
||||
using Lumina.Excel.GeneratedSheets;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace MareSynchronos.Utils;
|
||||
|
|
@ -29,6 +30,12 @@ internal class Logger : ILogger
|
|||
}
|
||||
}
|
||||
|
||||
public static void Warn(string msg, Exception ex)
|
||||
{
|
||||
var caller = new StackTrace().GetFrame(1)?.GetMethod()?.ReflectedType?.Name ?? "Unknown";
|
||||
PluginLog.Warning($"[{caller}] {msg} {Environment.NewLine} Exception: {ex.Message} {Environment.NewLine} {ex.StackTrace}");
|
||||
}
|
||||
|
||||
public static void Warn(string warn)
|
||||
{
|
||||
var caller = new StackTrace().GetFrame(1)?.GetMethod()?.ReflectedType?.Name ?? "Unknown";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue