mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 21:07:21 +01:00
fix some random texture loading issues I don't understand, fix loading issues
This commit is contained in:
parent
afbb3eea8e
commit
320b80e3ae
5 changed files with 47 additions and 31 deletions
|
|
@ -1,14 +1,23 @@
|
|||
using System.Diagnostics;
|
||||
using System.Text;
|
||||
using Dalamud.Logging;
|
||||
using Dalamud.Utility;
|
||||
|
||||
namespace MareSynchronos.Utils
|
||||
{
|
||||
internal class Logger
|
||||
{
|
||||
public static void Debug(string debug)
|
||||
public static void Debug(string debug, string stringToHighlight = "")
|
||||
{
|
||||
var caller = new StackTrace().GetFrame(1)?.GetMethod()?.ReflectedType?.Name ?? "Unknown";
|
||||
PluginLog.Debug($"[{caller}] {debug}");
|
||||
if (debug.Contains(stringToHighlight) && !stringToHighlight.IsNullOrEmpty())
|
||||
{
|
||||
PluginLog.Warning($"[{caller}] {debug}");
|
||||
}
|
||||
else
|
||||
{
|
||||
PluginLog.Debug($"[{caller}] {debug}");
|
||||
}
|
||||
}
|
||||
|
||||
public static void Warn(string warn)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue