Commit 419d6bf7 authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

adding a few more print statements


Signed-off-by: Mccaskey, Alex's avatarAlex McCaskey <mccaskeyaj@ornl.gov>
parent 19d8426a
......@@ -51,9 +51,11 @@ void Initialize(int arc, char** arv) {
argc = arc;
argv = arv;
XACCLogger::instance()->info("Creating XACC ServiceRegistry");
// Get reference to the service registry
auto serviceRegistry = xacc::ServiceRegistry::instance();
try {
XACCLogger::instance()->info("Initializing the ServiceRegistry");
serviceRegistry->initialize();
} catch (std::exception& e) {
XACCLogger::instance()->error(
......
......@@ -4,12 +4,15 @@ namespace xacc {
void ServiceRegistry::initialize() {
if (!initialized) {
XACCLogger::instance()->info("Creating CppUs Framework.");
framework = FrameworkFactory().NewFramework();
// Initialize the framework, such that we can call
// GetBundleContext() later.
XACCLogger::instance()->info("Running Framework.Init.");
framework.Init();
XACCLogger::instance()->info(" Getting the Framework Bundle Context.");
context = framework.GetBundleContext();
if (!context) {
XACCLogger::instance()->error(
......@@ -53,6 +56,7 @@ void ServiceRegistry::initialize() {
"There are no plugins. Install plugins to begin working with XACC.");
}
XACCLogger::instance()->info("Starting the CppUs Framework.");
// Start the framework itself.
framework.Start();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment