Better Runtime Logging (#913)

Introduces a few updates from /tg/station13 with regards to runtime logging, and then modifies the runtime logging code to work properly. Developers now have access to both condensed and uncondensed runtime logs, with the former being updated at the end of each round.
This commit is contained in:
skull132
2016-09-12 21:19:45 +03:00
committed by GitHub
parent a5478a5360
commit c749c18b93
12 changed files with 601 additions and 4698 deletions

View File

@@ -62,7 +62,7 @@ var/list/delayed_garbage = list()
#endif
if(A && A.gcDestroyed == GCd_at_time) // So if something else coincidently gets the same ref, it's not deleted by mistake
// Something's still referring to the qdel'd object. Kill it.
testing("GC: -- \ref[A] | [A.type] was unable to be GC'd and was deleted --")
log_hard_delete(A)
logging["[A.type]"]++
del(A)
@@ -99,7 +99,7 @@ var/list/delayed_garbage = list()
// Tests if an atom has been deleted.
/proc/deleted(atom/A)
/proc/deleted(atom/A)
return !A || !isnull(A.gcDestroyed)
// Should be treated as a replacement for the 'del' keyword.