Processor Runtime Logging (#924)

We now get a proper, timestamped and printed stack from the process scheduler processes, instead of an obscure name and line reference!
This commit is contained in:
skull132
2016-09-15 12:09:16 +03:00
committed by GitHub
parent 7ea3b92092
commit 1662e84086
2 changed files with 25 additions and 10 deletions

View File

@@ -366,6 +366,9 @@
spawn(6000)
exceptions[eid] = 0
e.time_stamp()
log_exception(e)
/datum/controller/process/proc/catchBadType(var/datum/caught)
if(isnull(caught) || !istype(caught) || !isnull(caught.gcDestroyed))
return // Only bother with types we can identify and that don't belong