mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 11:05:44 +08:00
Logging for driver loading
This commit is contained in:
committed by
Roland Winklmeier
parent
d581dda272
commit
e873025455
@@ -395,6 +395,7 @@ namespace BlackCore
|
|||||||
foreach(QString fileName, fileNames)
|
foreach(QString fileName, fileNames)
|
||||||
{
|
{
|
||||||
if (!QLibrary::isLibrary(fileName)) { continue; }
|
if (!QLibrary::isLibrary(fileName)) { continue; }
|
||||||
|
CLogMessage(this).info("Try to load plugin: ") << fileName;
|
||||||
QString pluginPath = m_pluginsDir.absoluteFilePath(fileName);
|
QString pluginPath = m_pluginsDir.absoluteFilePath(fileName);
|
||||||
QPluginLoader loader(pluginPath);
|
QPluginLoader loader(pluginPath);
|
||||||
QObject *plugin = loader.instance();
|
QObject *plugin = loader.instance();
|
||||||
@@ -404,14 +405,14 @@ namespace BlackCore
|
|||||||
if (factory)
|
if (factory)
|
||||||
{
|
{
|
||||||
CSimulatorInfo simulatorInfo = factory->getSimulatorInfo();
|
CSimulatorInfo simulatorInfo = factory->getSimulatorInfo();
|
||||||
qDebug() << "Found simulator plugin: " << simulatorInfo.toQString();
|
|
||||||
m_simulatorFactories.insert(factory);
|
m_simulatorFactories.insert(factory);
|
||||||
|
CLogMessage(this).info("Loaded plugin: ") << simulatorInfo.toQString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
CLogMessage(this).error(loader.errorString());
|
QString errorMsg = loader.errorString().append(" ").append("Also check if required dll/libs of plugin exists");
|
||||||
qDebug() << "Also check if required dll/libs of plugin exists";
|
CLogMessage(this).error(errorMsg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user