From f2ce3a45c574af2545933f87784f2bb0398ad141 Mon Sep 17 00:00:00 2001 From: patrick96 Date: Mon, 21 Mar 2022 21:17:33 +0100 Subject: [PATCH] controller: Print when modules are loaded. --- src/components/controller.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/controller.cpp b/src/components/controller.cpp index 474abe5f..ec856766 100644 --- a/src/components/controller.cpp +++ b/src/components/controller.cpp @@ -63,6 +63,8 @@ controller::controller( if (!created_modules) { throw application_error("No modules created"); } + + m_log.notice("Loaded %zd modules", created_modules); } /** @@ -597,6 +599,7 @@ size_t controller::setup_modules(alignment align) { throw application_error("Inter-process messaging needs to be enabled"); } + m_log.notice("Loading module '%s' of type '%s'", module_name, type); auto ptr = make_module(move(type), m_bar->settings(), module_name, m_log); module_t module = shared_ptr(ptr); ptr = nullptr; @@ -608,7 +611,7 @@ size_t controller::setup_modules(alignment align) { } } - return m_modules.size(); + return m_blocks[align].size(); } /**