Re-add stack trace
This commit is contained in:
parent
bfe407024e
commit
b592a04190
1 changed files with 6 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue