controller: Print when modules are loaded.
This commit is contained in:
parent
9b7bfae33d
commit
f2ce3a45c5
@ -63,6 +63,8 @@ controller::controller(
|
|||||||
if (!created_modules) {
|
if (!created_modules) {
|
||||||
throw application_error("No modules created");
|
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");
|
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);
|
auto ptr = make_module(move(type), m_bar->settings(), module_name, m_log);
|
||||||
module_t module = shared_ptr<modules::module_interface>(ptr);
|
module_t module = shared_ptr<modules::module_interface>(ptr);
|
||||||
ptr = nullptr;
|
ptr = nullptr;
|
||||||
@ -608,7 +611,7 @@ size_t controller::setup_modules(alignment align) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return m_modules.size();
|
return m_blocks[align].size();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user