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]") diff --git a/code/game/world.dm b/code/game/world.dm index a5359980e8e4..1b6ca87f00f7 100644 --- a/code/game/world.dm +++ b/code/game/world.dm @@ -310,10 +310,17 @@ GLOBAL_VAR(restart_counter) shutdown_logging() // See comment below. TgsEndProcess() - log_world("World rebooted at [time_stamp()]") + log_world("Attempting world reboot at [time_stamp()].") + log_world("Awaiting rust_g shutdown.") shutdown_logging() // Past this point, no logging procs can be used besides log_world() at risk of data loss. + log_world("rust_g shutdown successful.") + + log_world("Awaiting TGS reboot") TgsReboot() // TGS can decide to kill us right here, so it's important to do it last + log_world("TGS reboot successful.") + + log_world("World rebooted at [time_stamp()].") ..() /world/proc/update_status()