| 300 | } |
| 301 | |
| 302 | QString JsonRpcClient::formatLogMessage(const QString& method, |
| 303 | const QVariantList& args, |
| 304 | bool async, |
| 305 | const QString& request_id) |
| 306 | { |
| 307 | auto msg = QString("Calling (%1) RPC method: '%2' ") |
| 308 | .arg(async ? "async" : "sync").arg(method); |
| 309 | |
| 310 | if (args.empty()) { |
| 311 | msg += "without arguments"; |
| 312 | } else { |
| 313 | msg += QString("with argument%1: %2") |
| 314 | .arg(args.size() == 1 ? "" : "s") |
| 315 | .arg(variantListToStringList(args).join(", ")); |
| 316 | } |
| 317 | msg += QString(" (request ID: %1)").arg(request_id); |
| 318 | return msg; |
| 319 | } |
| 320 | |
| 321 | void JsonRpcClient::logError(const QString& msg) |
| 322 | { |
nothing calls this directly
no test coverage detected