better logging

This commit is contained in:
Fox-McCloud
2017-04-01 07:55:27 -04:00
parent 24a2af5c43
commit f931ea9e36
2 changed files with 3 additions and 3 deletions
@@ -82,7 +82,7 @@ var/global/datum/controller/process/garbage_collector/garbageCollector
#undef GC_COLLECTIONS_PER_TICK
/datum/controller/process/garbage_collector/proc/hardDel(var/datum/D)
gc_hard_del_types |= D.type
gc_hard_del_types["[D.type]"]++
D.hard_deleted = 1
if(!D.gcDestroyed)
spawn(-1)
@@ -25,9 +25,9 @@
to_chat(usr, "<span class='notice'>No hard del()'d types found.</span>")
return
to_chat(usr, "Types hard del()'d by the GC:")
to_chat(usr, "Types hard del()'d by the GC and number of times failed:")
for(var/A in gc_hard_del_types)
to_chat(usr, "[A]")
to_chat(usr, "[A] - [gc_hard_del_types[A]] times")
#ifdef TESTING
/client/var/running_find_references