fix some random texture loading issues I don't understand, fix loading issues
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user