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 commit341b9cf15a) Fixes crash when exiting with --verbose with leaked resources (cherry picked from commit25c4dacb88)
This commit is contained in:
committed by
Rémi Verschelde
parent
ece69f8208
commit
15d9f77f97
@@ -978,6 +978,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