diff --git a/code/controllers/subsystem/garbage.dm b/code/controllers/subsystem/garbage.dm index 1fff5c643048..f0bfb6a76a27 100644 --- a/code/controllers/subsystem/garbage.dm +++ b/code/controllers/subsystem/garbage.dm @@ -47,6 +47,21 @@ SUBSYSTEM_DEF(garbage) msg += "TGR:[round((totalgcs/(totaldels+totalgcs))*100, 0.01)]%" ..(msg) +/datum/controller/subsystem/garbage/Shutdown() + //Adds the del() log to world.log in a format condensable by the runtime condenser found in tools + if(didntgc.len || sleptDestroy.len) + var/list/dellog = list() + for(var/path in didntgc) + dellog += "Path : [path] \n" + dellog += "Failures : [didntgc[path]] \n" + if(path in sleptDestroy) + dellog += "Sleeps : [sleptDestroy[path]] \n" + sleptDestroy -= path + for(var/path in sleptDestroy) + dellog += "Path : [path] \n" + dellog += "Sleeps : [sleptDestroy[path]] \n" + log_world(dellog.Join()) + /datum/controller/subsystem/garbage/fire() HandleToBeQueued() if(state == SS_RUNNING) diff --git a/code/controllers/subsystem/ticker.dm b/code/controllers/subsystem/ticker.dm index 3f7f23b62e28..5d572f8a07a3 100644 --- a/code/controllers/subsystem/ticker.dm +++ b/code/controllers/subsystem/ticker.dm @@ -590,22 +590,6 @@ SUBSYSTEM_DEF(ticker) CHECK_TICK - //Adds the del() log to world.log in a format condensable by the runtime condenser found in tools - if(SSgarbage.didntgc.len || SSgarbage.sleptDestroy.len) - var/dellog = "" - for(var/path in SSgarbage.didntgc) - dellog += "Path : [path] \n" - dellog += "Failures : [SSgarbage.didntgc[path]] \n" - if(path in SSgarbage.sleptDestroy) - dellog += "Sleeps : [SSgarbage.sleptDestroy[path]] \n" - SSgarbage.sleptDestroy -= path - for(var/path in SSgarbage.sleptDestroy) - dellog += "Path : [path] \n" - dellog += "Sleeps : [SSgarbage.sleptDestroy[path]] \n" - log_world(dellog) - - CHECK_TICK - //Collects persistence features SSpersistence.CollectData() diff --git a/code/world.dm b/code/world.dm index ea6c35ebec4f..2fac93f87cbe 100644 --- a/code/world.dm +++ b/code/world.dm @@ -210,14 +210,6 @@ /world/proc/OnReboot(reason, feedback_c, feedback_r, round_end_sound_sent) feedback_set_details("[feedback_c]","[feedback_r]") log_game("Rebooting World. [reason]") -#ifdef dellogging - var/log = file("data/logs/del.log") - log << time2text(world.realtime) - for(var/index in del_counter) - var/count = del_counter[index] - if(count > 10) - log << "#[count]\t[index]" -#endif if(GLOB.blackbox) GLOB.blackbox.save_all_data_to_sql() Master.Shutdown() //run SS shutdowns