MCPcopy Create free account
hub / github.com/Segs/Segs / formatLogMessage

Method formatLogMessage

3rd_party/jcon-cpp/src/jcon/json_rpc_client.cpp:302–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300}
301
302QString 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
321void JsonRpcClient::logError(const QString& msg)
322{

Callers

nothing calls this directly

Calls 4

variantListToStringListFunction · 0.85
QStringClass · 0.70
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected