From 8bb18d42e3edb28e37c80dba25b477ce96f40c0d Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sat, 18 May 2024 15:07:35 +0200 Subject: [PATCH] Enable diagnostic & verbose log messages --- src/loader.gd | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/loader.gd b/src/loader.gd index f2241ee..c9d4e63 100644 --- a/src/loader.gd +++ b/src/loader.gd @@ -16,10 +16,16 @@ # along with this program. If not, see . extends Control -var core: Core = await Core.new() +var core: Core @onready var logger: CoreLoggerInstance = core.logger.get_instance("src/loader.gd", self) @onready var manager: VenusManager = VenusManager.new(core) +func _init() -> void: + var config: CoreConfiguration = CoreConfiguration.new() + config.logger_level = CoreTypes.LoggerLevel.DIAG + core = await Core.new(config) + config.queue_free() + func _ready() -> void: await get_tree().process_frame get_tree().root.add_child(core)