From a827b7f4854e383f8436da574c80654954d09b88 Mon Sep 17 00:00:00 2001 From: Kai-Uwe Hermann Date: Wed, 8 Jan 2025 11:07:27 +0100 Subject: [PATCH] Log the number of modules started Signed-off-by: Kai-Uwe Hermann # Conflicts: # src/manager.cpp Signed-off-by: Kai-Uwe Hermann --- src/manager.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/manager.cpp b/src/manager.cpp index beeb78fc..c05a9cb2 100644 --- a/src/manager.cpp +++ b/src/manager.cpp @@ -300,8 +300,9 @@ static std::map start_modules(ManagerConfig& config, MQTTAbs std::vector modules_to_spawn; - const auto main_config = config.get_main_config(); - modules_to_spawn.reserve(main_config.size()); + const auto& main_config = config.get_main_config(); + const auto number_of_modules = main_config.size(); + EVLOG_info << "Starting " << number_of_modules << " modules"; const auto serialized_config = config.serialize(); const auto interface_definitions = config.get_interface_definitions();