From 448bfaa90d199f25c1d3892c1e310ca138b47a6f Mon Sep 17 00:00:00 2001 From: Kapu1178 <75460809+Kapu1178@users.noreply.github.com> Date: Tue, 30 Apr 2024 14:52:43 -0400 Subject: [PATCH 1/2] debug world reboot --- code/game/world.dm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/code/game/world.dm b/code/game/world.dm index af7bf55e8e83..1ff014bd8df5 100644 --- a/code/game/world.dm +++ b/code/game/world.dm @@ -309,10 +309,16 @@ GLOBAL_VAR(restart_counter) shutdown_logging() // See comment below. TgsEndProcess() - log_world("World rebooted at [time_stamp()]") + log_world("Awaiting TGS reboot") TgsReboot() - shutdown_logging() // Past this point, no logging procs can be used, at risk of data loss. + log_world("TGS reboot successful.") + + log_world("Awaiting rust_g shutdown.") + shutdown_logging() // Past this point, no logging procs can be used, at risk of data loss. This is a lie, world log can be used safely. + log_world("rust_g shutdown successful.") + + log_world("World rebooted at [time_stamp()].") ..() /world/proc/update_status() From 703e96d5762365163ae6b98d590d686a710564d0 Mon Sep 17 00:00:00 2001 From: Kapu1178 <75460809+Kapu1178@users.noreply.github.com> Date: Tue, 30 Apr 2024 15:00:02 -0400 Subject: [PATCH 2/2] enable tgs debug logging --- code/__DEFINES/tgs.config.dm | 1 + 1 file changed, 1 insertion(+) diff --git a/code/__DEFINES/tgs.config.dm b/code/__DEFINES/tgs.config.dm index ec49eae48387..47c1ab5a3850 100644 --- a/code/__DEFINES/tgs.config.dm +++ b/code/__DEFINES/tgs.config.dm @@ -10,3 +10,4 @@ #define TGS_NOTIFY_ADMINS(event) message_admins(##event) #define TGS_CLIENT_COUNT GLOB.clients.len #define TGS_PROTECT_DATUM(Path) GENERAL_PROTECT_DATUM(##Path) +#define TGS_DEBUG_LOG(message) log_world("TGS Debug: [##message]")