Re-add stack trace

This commit is contained in:
Lucas Nicodemus 2015-07-10 00:42:57 -06:00
parent bfe407024e
commit b592a04190

View file

@ -803,6 +803,12 @@ namespace TShockAPI
LastDisableNotification = DateTime.UtcNow;
}
}
var trace = new StackTrace();
StackFrame frame = null;
frame = trace.GetFrame(1);
if (frame != null && frame.GetMethod().DeclaringType != null)
TShock.Log.Debug(frame.GetMethod().DeclaringType.Name + " called Disable().");
}
public virtual void Whoopie(object time)