Fix startup log messages not being visible

This commit is contained in:
JeremyStar™ 2024-04-07 22:01:19 +02:00
parent 72bc71935e
commit 2dd5c2b4c2
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -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: