From b666e76d7d64cfb349e5e2830a0645372c2ec15e Mon Sep 17 00:00:00 2001 From: Leshana Date: Fri, 9 Mar 2018 23:50:43 -0500 Subject: [PATCH] Reduce qdel log file by 150000% Fix indenting error that caused it to log repeatedly. Also put it in its own file to match the pattern used by overlays and initialize. --- code/controllers/subsystems/garbage.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/controllers/subsystems/garbage.dm b/code/controllers/subsystems/garbage.dm index 32c1e37a6e..eff85a3627 100644 --- a/code/controllers/subsystems/garbage.dm +++ b/code/controllers/subsystems/garbage.dm @@ -81,7 +81,8 @@ SUBSYSTEM_DEF(garbage) dellog += "\tIgnored force: [I.no_respect_force] times" if (I.no_hint) dellog += "\tNo hint: [I.no_hint] times" - log_misc(dellog.Join()) + var/date_string = time2text(world.realtime, "YYYY/MM-Month/DD-Day") + text2file(dellog.Join(), "data/logs/[date_string]-qdel.log") /datum/controller/subsystem/garbage/fire() //the fact that this resets its processing each fire (rather then resume where it left off) is intentional.