Enable diagnostic & verbose log messages

This commit is contained in:
JeremyStar™ 2024-05-18 15:07:35 +02:00
parent 589d8052d7
commit 8bb18d42e3
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -16,10 +16,16 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
extends Control 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 logger: CoreLoggerInstance = core.logger.get_instance("src/loader.gd", self)
@onready var manager: VenusManager = VenusManager.new(core) @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: func _ready() -> void:
await get_tree().process_frame await get_tree().process_frame
get_tree().root.add_child(core) get_tree().root.add_child(core)