From df6ca2796c96453cdcf7de4f95eab8e6ceb50e23 Mon Sep 17 00:00:00 2001 From: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> Date: Tue, 9 Aug 2022 10:14:58 +0100 Subject: [PATCH] DD stdout logging (#18748) * DD stdout logging * Update code/game/world.dm Co-authored-by: Sirryan2002 <80364400+Sirryan2002@users.noreply.github.com> Co-authored-by: Sirryan2002 <80364400+Sirryan2002@users.noreply.github.com> --- code/game/world.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/game/world.dm b/code/game/world.dm index ca6e4eafdc2..16bcfea989c 100644 --- a/code/game/world.dm +++ b/code/game/world.dm @@ -42,6 +42,9 @@ GLOBAL_LIST_INIT(map_transition_config, list(CC_TRANSITION_CONFIG)) GLOB.revision_info.log_info() load_admins(run_async = FALSE) // This better happen early on. + if(TgsAvailable()) + world.log = file("[GLOB.log_directory]/dd.log") //not all runtimes trigger world/Error, so this is the only way to ensure we can see all of them. + #ifdef UNIT_TESTS log_world("Unit Tests Are Enabled!") #endif