Browse Source

RPC request debug logging with -debug=rpcrequests

dev
miketout 2 years ago
parent
commit
3c6a803fe4
  1. 4
      src/rpc/misc.cpp
  2. 2
      src/rpc/server.cpp

4
src/rpc/misc.cpp

@ -1831,10 +1831,6 @@ UniValue getaddressutxos(const UniValue& params, bool fHelp)
{
CurrencyValuesAndNames(output, false, it->second.script, it->second.satoshis, friendlyNames);
}
else
{
UniValue
}
output.push_back(Pair("satoshis", it->second.satoshis));
output.push_back(Pair("height", it->second.blockHeight));
if (chainActive.Height() >= it->second.blockHeight)

2
src/rpc/server.cpp

@ -729,6 +729,8 @@ UniValue CRPCTable::execute(const std::string &strMethod, const UniValue &params
throw JSONRPCError(RPC_METHOD_NOT_FOUND, "Method " + strMethod + " not found");
}
LogPrint("rpcrequests", "command %s, params:\n%s\n", strMethod.c_str(), params.write(1,2).c_str());
g_rpcSignals.PreCommand(*pcmd);
try

Loading…
Cancel
Save