Fix startup log messages not being visible
This commit is contained in:
parent
72bc71935e
commit
2dd5c2b4c2
1 changed files with 2 additions and 1 deletions
|
@ -8,7 +8,7 @@ const config_keys: Dictionary = { "dev": TYPE_BOOL, "test_directory": TYPE_STRIN
|
||||||
# Configuration
|
# Configuration
|
||||||
var config_dev: bool = false
|
var config_dev: bool = false
|
||||||
var config_test_directory: String = "res://tests"
|
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_log_format: String = "%color_start%%level% %origin%: %message%%color_end%"
|
||||||
var config_print_orphan_nodes: bool = false
|
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))) + "')")
|
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")
|
ldiag("Configuration update: Key \"" + config_key + "\" has been updated")
|
||||||
set("config_" + config_key, config.get(config_key))
|
set("config_" + config_key, config.get(config_key))
|
||||||
|
if config_log_level == -5: config_log_level = 0
|
||||||
|
|
||||||
# Update window properties
|
# Update window properties
|
||||||
func update_window_properties() -> void:
|
func update_window_properties() -> void:
|
||||||
|
|
Loading…
Reference in a new issue