mirror of
https://github.com/DCFApixels/DragonECS-Unity.git
synced 2025-09-18 18:14:35 +08:00
fix debug service
This commit is contained in:
parent
d355a409b0
commit
c9404c9c73
@ -12,19 +12,25 @@ namespace DCFApixels.DragonECS
|
|||||||
|
|
||||||
public override void Print(string tag, object v)
|
public override void Print(string tag, object v)
|
||||||
{
|
{
|
||||||
string log = $"[{tag}] {v}";
|
string log;
|
||||||
string taglower = tag.ToLower();
|
if (!string.IsNullOrEmpty(tag))
|
||||||
if (taglower.Contains("warning"))
|
|
||||||
{
|
{
|
||||||
Debug.LogWarning(log);
|
log = $"[{tag}] {v}";
|
||||||
|
string taglower = tag.ToLower();
|
||||||
|
if (taglower.Contains("warning"))
|
||||||
|
{
|
||||||
|
Debug.LogWarning(log);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (taglower.Contains("error"))
|
||||||
|
{
|
||||||
|
Debug.LogError(log);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
Debug.Log(log);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (taglower.Contains("error"))
|
Debug.Log(v);
|
||||||
{
|
|
||||||
Debug.LogError(log);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Debug.Log(log);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void ProfileMarkBegin(int id)
|
public override void ProfileMarkBegin(int id)
|
||||||
|
Loading…
Reference in New Issue
Block a user