DebugLog: slight refactor

This commit is contained in:
JohnCorby 2023-02-28 19:50:33 -08:00
parent 385ebd543e
commit 7bb2f1ca72

View File

@ -61,6 +61,6 @@ public static class DebugLog
new StackTrace(2) // skip this function and calling function
.GetFrames()!
.Select(x => x.GetMethod().DeclaringType!)
.First(x => x != typeof(DebugLog) && !x.IsDefined(typeof(CompilerGeneratedAttribute)))
.First(x => x != typeof(DebugLog) && !x.IsDefined(typeof(CompilerGeneratedAttribute), true))
.Name;
}