Makes sure log_to_dd doesn't fire if the config has not actually loaded yet (#17636)

This commit is contained in:
Cameron Lennox
2025-04-28 19:05:50 -04:00
committed by GitHub
parent c9b2049cc5
commit daf3dad328
+1 -1
View File
@@ -156,7 +156,7 @@
/proc/log_to_dd(text)
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]")
/proc/log_error(text)