From e873025455c574f1e95e9fbaa47efaf124b8d1b1 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Sun, 23 Nov 2014 17:50:04 +0100 Subject: [PATCH] Logging for driver loading --- src/blackcore/context_simulator_impl.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/blackcore/context_simulator_impl.cpp b/src/blackcore/context_simulator_impl.cpp index a7f45bc2a..23d5f89ad 100644 --- a/src/blackcore/context_simulator_impl.cpp +++ b/src/blackcore/context_simulator_impl.cpp @@ -395,6 +395,7 @@ namespace BlackCore foreach(QString fileName, fileNames) { if (!QLibrary::isLibrary(fileName)) { continue; } + CLogMessage(this).info("Try to load plugin: ") << fileName; QString pluginPath = m_pluginsDir.absoluteFilePath(fileName); QPluginLoader loader(pluginPath); QObject *plugin = loader.instance(); @@ -404,14 +405,14 @@ namespace BlackCore if (factory) { CSimulatorInfo simulatorInfo = factory->getSimulatorInfo(); - qDebug() << "Found simulator plugin: " << simulatorInfo.toQString(); m_simulatorFactories.insert(factory); + CLogMessage(this).info("Loaded plugin: ") << simulatorInfo.toQString(); } } else { - CLogMessage(this).error(loader.errorString()); - qDebug() << "Also check if required dll/libs of plugin exists"; + QString errorMsg = loader.errorString().append(" ").append("Also check if required dll/libs of plugin exists"); + CLogMessage(this).error(errorMsg); } } }