Merge pull request #12553 from Citadel-Station-13/kevinz000-patch-3

fixes dd.log
This commit is contained in:
nik707
2020-06-18 10:40:47 -05:00
committed by GitHub
+3 -4
View File
@@ -39,6 +39,9 @@ GLOBAL_LIST(topic_status_cache)
#ifndef USE_CUSTOM_ERROR_HANDLER
world.log = file("[GLOB.log_directory]/dd.log")
#else
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.
#endif
load_admins()
@@ -67,10 +70,6 @@ GLOBAL_LIST(topic_status_cache)
/world/proc/InitTgs()
TgsNew(new /datum/tgs_event_handler/impl, TGS_SECURITY_TRUSTED)
GLOB.revdata.load_tgs_info()
#ifdef USE_CUSTOM_ERROR_HANDLER
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.
#endif
GLOB.tgs_initialized = TRUE
/world/proc/HandleTestRun()