[MIRROR] Makes sure log_to_dd doesn't fire if the config has not actually loaded yet (#10806)

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-04-29 02:03:33 -07:00
committed by GitHub
parent fadf7c4b4c
commit 94ab1723ba

View File

@@ -264,7 +264,7 @@
/proc/log_to_dd(text) /proc/log_to_dd(text)
to_world_log(text) //this comes before the config check because it can't possibly runtime to_world_log(text) //this comes before the config check because it can't possibly runtime
if(CONFIG_GET(flag/log_world_output)) if(config?.loaded && CONFIG_GET(flag/log_world_output))
WRITE_LOG(GLOB.diary, "DD_OUTPUT: [text]") WRITE_LOG(GLOB.diary, "DD_OUTPUT: [text]")
/proc/log_error(text) /proc/log_error(text)