fix debug service

This commit is contained in:
Mikhail 2023-03-30 05:34:38 +08:00
parent d355a409b0
commit c9404c9c73

View File

@ -12,7 +12,10 @@ namespace DCFApixels.DragonECS
public override void Print(string tag, object v)
{
string log = $"[{tag}] {v}";
string log;
if (!string.IsNullOrEmpty(tag))
{
log = $"[{tag}] {v}";
string taglower = tag.ToLower();
if (taglower.Contains("warning"))
{
@ -25,6 +28,9 @@ namespace DCFApixels.DragonECS
return;
}
Debug.Log(log);
return;
}
Debug.Log(v);
}
public override void ProfileMarkBegin(int id)