mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
[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:
committed by
GitHub
parent
fadf7c4b4c
commit
94ab1723ba
@@ -264,7 +264,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)
|
||||
|
||||
Reference in New Issue
Block a user