From 2dd5c2b4c28f4567b6a5c29d39be8ea31cba5ef3 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sun, 7 Apr 2024 22:01:19 +0200 Subject: [PATCH] Fix startup log messages not being visible --- addons/besseretests/src/runtimescene.gd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/besseretests/src/runtimescene.gd b/addons/besseretests/src/runtimescene.gd index dbcba59..b675dd6 100644 --- a/addons/besseretests/src/runtimescene.gd +++ b/addons/besseretests/src/runtimescene.gd @@ -8,7 +8,7 @@ const config_keys: Dictionary = { "dev": TYPE_BOOL, "test_directory": TYPE_STRIN # Configuration var config_dev: bool = false var config_test_directory: String = "res://tests" -var config_log_level: int = 2 +var config_log_level: int = -5 var config_log_format: String = "%color_start%%level% %origin%: %message%%color_end%" var config_print_orphan_nodes: bool = false @@ -64,6 +64,7 @@ func load_config() -> void: if typeof(config.get(config_key)) != config_keys[config_key]: await lerror("Configuration error: Key \"" + config_key + "\" is not of type '" + type_string(config_keys[config_key]) + "' (is '" + type_string(typeof(config.get(config_key))) + "')") ldiag("Configuration update: Key \"" + config_key + "\" has been updated") set("config_" + config_key, config.get(config_key)) + if config_log_level == -5: config_log_level = 0 # Update window properties func update_window_properties() -> void: