Fix wait time

This commit is contained in:
JeremyStar™ 2024-04-14 15:17:55 +02:00
parent 2e9cce8f27
commit 493bf45b8c
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D
3 changed files with 3 additions and 5 deletions

View file

@ -60,7 +60,6 @@ func _init() -> void:
# Logger # Logger
logger_level = CoreTypes.LoggerLevel.INFO logger_level = CoreTypes.LoggerLevel.INFO
logger_colored = true logger_colored = true
logger_detect_verbose_mode = false
logger_format = "%color%[%time%] [%level% %origin%] %message%" logger_format = "%color%[%time%] [%level% %origin%] %message%"
logger_newlines_override = true logger_newlines_override = true
logger_newlines_sizelimit = 40 logger_newlines_sizelimit = 40

View file

@ -176,6 +176,9 @@ func apply_configuration() -> void:
for module in custom_modules: for module in custom_modules:
custom_modules[module]._pull_config() custom_modules[module]._pull_config()
# Workaround
logger.verbose_mode = OS.is_stdout_verbose()
# +++ custom module support +++ # +++ custom module support +++
## Registers a new custom module. ## Registers a new custom module.
func register_custom_module(module_name: String, module_origin: String, module_class: CoreBaseModule) -> bool: func register_custom_module(module_name: String, module_origin: String, module_class: CoreBaseModule) -> bool:

View file

@ -45,10 +45,6 @@ var config_newlines_override: bool
var config_newlines_sizelimit: int var config_newlines_sizelimit: int
# +++ module +++ # +++ module +++
func _initialize() -> void:
if core.config.logger_detect_verbose_mode and OS.is_stdout_verbose():
verbose_mode = true
func _cleanup() -> void: func _cleanup() -> void:
_schedule() _schedule()
await get_tree().process_frame await get_tree().process_frame