You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Add a project setting to enable stdout flushing in release builds
This can be used in server builds for journalctl compatibility.
(cherry picked from commit 341b9cf15a)
This commit is contained in:
committed by
Rémi Verschelde
parent
2753cc5264
commit
f5f04a10f5
@@ -971,6 +971,11 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
|
||||
}
|
||||
#endif
|
||||
|
||||
// Only flush stdout in debug builds by default, as spamming `print()` will
|
||||
// decrease performance if this is enabled.
|
||||
GLOBAL_DEF("application/run/flush_stdout_on_print", false);
|
||||
GLOBAL_DEF("application/run/flush_stdout_on_print.debug", true);
|
||||
|
||||
GLOBAL_DEF("logging/file_logging/enable_file_logging", false);
|
||||
// Only file logging by default on desktop platforms as logs can't be
|
||||
// accessed easily on mobile/Web platforms (if at all).
|
||||
|
||||
Reference in New Issue
Block a user