Skip to content

Commit

Permalink
chore: in log show the failed plugin also
Browse files Browse the repository at this point in the history
Log:
  • Loading branch information
Decodetalkers authored and deepin-bot[bot] committed Nov 14, 2023
1 parent 571f7dd commit 16fdf3e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/frame/pluginmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,16 @@ void PluginManager::loadModules(ModuleObject *root, bool async, const QStringLis
QThread::sleep(10);
std::lock_guard<std::mutex> guard(PLUGIN_LOAD_GUARD);
if (!m_pluginsStatus.isEmpty()) {
qCWarning(DdcFramePluginManager) << "Some plugins not loaded in time";
QString failedmessage = tr("following plugins load failed") + ":";

QString logMessage = "Some plugins not loaded in time: ";
for (const QString &value : m_pluginsStatus) {
failedmessage.push_back('\n');
failedmessage.push_back(value.split('/').last());
logMessage.push_back(value.split('/').last());
logMessage.push_back(";");
}
qCWarning(DdcFramePluginManager) << logMessage;

Dtk::Core::DUtil::DNotifySender(tr("plugins cannot loaded in time"))
.appIcon("dde-control-center")
Expand Down

0 comments on commit 16fdf3e

Please sign in to comment.