Skip to content

Commit

Permalink
Log the number of modules started
Browse files Browse the repository at this point in the history
Signed-off-by: Kai-Uwe Hermann <[email protected]>

# Conflicts:
#	src/manager.cpp

Signed-off-by: Kai-Uwe Hermann <[email protected]>
  • Loading branch information
hikinggrass committed Jan 8, 2025
1 parent 1985d27 commit a827b7f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,9 @@ static std::map<pid_t, std::string> start_modules(ManagerConfig& config, MQTTAbs

std::vector<ModuleStartInfo> 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();
Expand Down

0 comments on commit a827b7f

Please sign in to comment.