Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/server.cpp
Show First 20 Lines • Show All 262 Lines • ▼ Show 20 Lines | for (const RPCCommandExecutionInfo &info : | ||||
entry.pushKV("method", info.method); | entry.pushKV("method", info.method); | ||||
entry.pushKV("duration", GetTimeMicros() - info.start); | entry.pushKV("duration", GetTimeMicros() - info.start); | ||||
active_commands.push_back(entry); | active_commands.push_back(entry); | ||||
} | } | ||||
UniValue result(UniValue::VOBJ); | UniValue result(UniValue::VOBJ); | ||||
result.pushKV("active_commands", active_commands); | result.pushKV("active_commands", active_commands); | ||||
const std::string path = LogInstance().m_file_path.string(); | |||||
UniValue log_path(UniValue::VSTR, path); | |||||
result.pushKV("logpath", log_path); | |||||
return result; | return result; | ||||
} | } | ||||
// clang-format off | // clang-format off | ||||
static const CRPCCommand vRPCCommands[] = { | static const CRPCCommand vRPCCommands[] = { | ||||
// category name actor (function) argNames | // category name actor (function) argNames | ||||
// ------------------- ------------------------ ---------------------- ---------- | // ------------------- ------------------------ ---------------------- ---------- | ||||
/* Overall control/query calls */ | /* Overall control/query calls */ | ||||
▲ Show 20 Lines • Show All 259 Lines • Show Last 20 Lines |