mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
fix: 解决代码中告警信息
记录打印信息的文本中不能有告警信息 Log:将打印的告警信息转为调试信息 Bug:https://pms.uniontech.com/zentao/bug-view-20977.html
This commit is contained in:
parent
b6a48e73c9
commit
43d3e50aad
@ -165,7 +165,7 @@ void AbstractPluginsController::loadPlugin(const QString &pluginFile)
|
|||||||
const QString &pluginApi = meta.value("api").toString();
|
const QString &pluginApi = meta.value("api").toString();
|
||||||
bool pluginIsValid = true;
|
bool pluginIsValid = true;
|
||||||
if (pluginApi.isEmpty() || !CompatiblePluginApiList.contains(pluginApi)) {
|
if (pluginApi.isEmpty() || !CompatiblePluginApiList.contains(pluginApi)) {
|
||||||
qWarning() << objectName()
|
qDebug() << objectName()
|
||||||
<< "plugin api version not matched! expect versions:" << CompatiblePluginApiList
|
<< "plugin api version not matched! expect versions:" << CompatiblePluginApiList
|
||||||
<< ", got version:" << pluginApi
|
<< ", got version:" << pluginApi
|
||||||
<< ", the plugin file is:" << pluginFile;
|
<< ", the plugin file is:" << pluginFile;
|
||||||
@ -175,7 +175,7 @@ void AbstractPluginsController::loadPlugin(const QString &pluginFile)
|
|||||||
|
|
||||||
PluginsItemInterface *interface = qobject_cast<PluginsItemInterface *>(pluginLoader->instance());
|
PluginsItemInterface *interface = qobject_cast<PluginsItemInterface *>(pluginLoader->instance());
|
||||||
if (!interface) {
|
if (!interface) {
|
||||||
qWarning() << objectName() << "load plugin failed!!!" << pluginLoader->errorString() << pluginFile;
|
qDebug() << objectName() << "load plugin failed!!!" << pluginLoader->errorString() << pluginFile;
|
||||||
|
|
||||||
pluginLoader->unload();
|
pluginLoader->unload();
|
||||||
pluginLoader->deleteLater();
|
pluginLoader->deleteLater();
|
||||||
|
@ -686,8 +686,8 @@ void MainWindow::setStrutPartial()
|
|||||||
++count;
|
++count;
|
||||||
}
|
}
|
||||||
if (count > 0) {
|
if (count > 0) {
|
||||||
qWarning() << "strutArea is intersects with another screen.";
|
qDebug() << "strutArea is intersects with another screen.";
|
||||||
qWarning() << maxScreenHeight << maxScreenWidth << m_dockPosition << p << s;
|
qDebug() << maxScreenHeight << maxScreenWidth << m_dockPosition << p << s;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ QString DBusAdaptors::layout() const
|
|||||||
if (m_currentLayout.isEmpty()) {
|
if (m_currentLayout.isEmpty()) {
|
||||||
// refetch data
|
// refetch data
|
||||||
QTimer::singleShot(1000, m_keyboard, &Keyboard::currentLayout);
|
QTimer::singleShot(1000, m_keyboard, &Keyboard::currentLayout);
|
||||||
qWarning() << Q_FUNC_INFO << "currentLayout is Empty!!";
|
qDebug() << Q_FUNC_INFO << "currentLayout is Empty!!";
|
||||||
}
|
}
|
||||||
|
|
||||||
return m_currentLayout;
|
return m_currentLayout;
|
||||||
@ -103,7 +103,7 @@ void DBusAdaptors::initAllLayoutList()
|
|||||||
QDBusPendingCallWatcher *watcher = new QDBusPendingCallWatcher(call, this);
|
QDBusPendingCallWatcher *watcher = new QDBusPendingCallWatcher(call, this);
|
||||||
connect(watcher, &QDBusPendingCallWatcher::finished, this, [=] {
|
connect(watcher, &QDBusPendingCallWatcher::finished, this, [=] {
|
||||||
if (call.isError()) {
|
if (call.isError()) {
|
||||||
qWarning() << "failed to get all keyboard list: " << call.error().message();
|
qDebug() << "failed to get all keyboard list: " << call.error().message();
|
||||||
} else {
|
} else {
|
||||||
QDBusReply<KeyboardLayoutList> reply = call.reply();
|
QDBusReply<KeyboardLayoutList> reply = call.reply();
|
||||||
m_allLayoutList = reply.value();
|
m_allLayoutList = reply.value();
|
||||||
|
@ -298,7 +298,7 @@ bool ShutdownPlugin::checkSwap()
|
|||||||
|
|
||||||
file.close();
|
file.close();
|
||||||
} else {
|
} else {
|
||||||
qWarning() << "open /proc/swaps failed! please check permission!!!";
|
qDebug() << "open /proc/swaps failed! please check permission!!!";
|
||||||
}
|
}
|
||||||
|
|
||||||
return hasSwap;
|
return hasSwap;
|
||||||
|
@ -127,7 +127,7 @@ void PopupControlWidget::clearTrashFloder()
|
|||||||
if (DTrashManager::instance()->cleanTrash()) {
|
if (DTrashManager::instance()->cleanTrash()) {
|
||||||
DDesktopServices::playSystemSoundEffect(DDesktopServices::SSE_EmptyTrash);
|
DDesktopServices::playSystemSoundEffect(DDesktopServices::SSE_EmptyTrash);
|
||||||
} else {
|
} else {
|
||||||
qWarning() << "Clear trash failed";
|
qDebug() << "Clear trash failed";
|
||||||
}
|
}
|
||||||
// DFMGlobal::instance()->clearTrash();
|
// DFMGlobal::instance()->clearTrash();
|
||||||
}
|
}
|
||||||
|
@ -84,13 +84,13 @@ public:
|
|||||||
callback(v);
|
callback(v);
|
||||||
return;
|
return;
|
||||||
} else if (3 != arguments.count()) {
|
} else if (3 != arguments.count()) {
|
||||||
qWarning() << "arguments count must be 3";
|
qDebug() << "arguments count must be 3";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
QString interfaceName = msg.arguments().at(0).toString();
|
QString interfaceName = msg.arguments().at(0).toString();
|
||||||
if (interfaceName != propertyInterfaceNames.value(key)) {
|
if (interfaceName != propertyInterfaceNames.value(key)) {
|
||||||
qWarning() << "interfaceName mismatch" << interfaceName << propertyInterfaceNames.value(key) << key;
|
qDebug() << "interfaceName mismatch" << interfaceName << propertyInterfaceNames.value(key) << key;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
QVariantMap changedProps = qdbus_cast<QVariantMap>(arguments.at(1).value<QDBusArgument>());
|
QVariantMap changedProps = qdbus_cast<QVariantMap>(arguments.at(1).value<QDBusArgument>());
|
||||||
|
@ -585,7 +585,7 @@ void SNITrayWidget::showHoverTips()
|
|||||||
QProcess p;
|
QProcess p;
|
||||||
p.start("qdbus", {m_dbusService});
|
p.start("qdbus", {m_dbusService});
|
||||||
if (!p.waitForFinished(1000)) {
|
if (!p.waitForFinished(1000)) {
|
||||||
qWarning() << "sni dbus service error : " << m_dbusService;
|
qDebug() << "sni dbus service error : " << m_dbusService;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -417,7 +417,7 @@ void TrayPlugin::traySNIAdded(const QString &itemKey, const QString &sniServiceP
|
|||||||
QProcess p;
|
QProcess p;
|
||||||
p.start("qdbus", {nsiServerName});
|
p.start("qdbus", {nsiServerName});
|
||||||
if (!p.waitForFinished(1000)) {
|
if (!p.waitForFinished(1000)) {
|
||||||
qWarning() << "sni dbus service error : " << nsiServerName;
|
qDebug() << "sni dbus service error : " << nsiServerName;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user