diff --git a/src/ui/control/controlmanager.cpp b/src/ui/control/controlmanager.cpp index 13f01294..b32bff6a 100644 --- a/src/ui/control/controlmanager.cpp +++ b/src/ui/control/controlmanager.cpp @@ -172,6 +172,8 @@ bool ControlManager::processRequest(Control::Command command, const QVariantList if (Q_UNLIKELY(!w)) return false; + // DBG: qCDebug(LC) << "Client requested: id:" << w->id() << command << args.size(); + OsUtil::setThreadIsBusy(true); QString errorMessage; diff --git a/src/ui/control/controlworker.cpp b/src/ui/control/controlworker.cpp index 68b5f448..f34e0ae7 100644 --- a/src/ui/control/controlworker.cpp +++ b/src/ui/control/controlworker.cpp @@ -239,6 +239,8 @@ bool ControlWorker::sendCommandData(const QByteArray &commandData) bool ControlWorker::sendCommand(Control::Command command, const QVariantList &args) { + // DBG: qCDebug(LC) << "Send Command: id:" << id() << command << args.size(); + const QByteArray buffer = buildCommandData(command, args); if (buffer.isEmpty()) { qCWarning(LC) << "Bad RPC command to send:" << command << args; diff --git a/src/ui/model/connblocklistmodel.cpp b/src/ui/model/connblocklistmodel.cpp index 20d09099..3a9d1de1 100644 --- a/src/ui/model/connblocklistmodel.cpp +++ b/src/ui/model/connblocklistmodel.cpp @@ -2,6 +2,7 @@ #include #include +#include #include #include @@ -15,6 +16,12 @@ #include #include +namespace { + +const QLoggingCategory LC("connBlockListModel"); + +} + ConnBlockListModel::ConnBlockListModel(QObject *parent) : TableSqlModel(parent), m_resolveAddress(false) { diff --git a/src/ui/rpc/rpcmanager.cpp b/src/ui/rpc/rpcmanager.cpp index beb53b5e..74551789 100644 --- a/src/ui/rpc/rpcmanager.cpp +++ b/src/ui/rpc/rpcmanager.cpp @@ -673,6 +673,8 @@ bool RpcManager::waitResult() void RpcManager::sendResult(ControlWorker *w, bool ok, const QVariantList &args) { + // DBG: qCDebug(LC) << "Send Result to Client: id:" << w->id() << ok << args.size(); + w->sendCommand(ok ? Control::Rpc_Result_Ok : Control::Rpc_Result_Error, args); } @@ -720,6 +722,8 @@ void RpcManager::invokeOnClients(Control::Command cmd, const QVariantList &args) return; } + // DBG: qCDebug(LC) << "Invoke On Clients:" << cmd << args.size() << clients.size(); + if (!sendCommandDataToClients(buffer, clients)) { qCWarning(LC) << "Invoke on clients error:" << cmd << args; }