Skip to content

Commit cabff75

Browse files
committed
rpc: Make logging RPC public
This started out as a developer hack but now it's useful enough for general use. Unhide the call by moving it to `control` category. This makes it documented in `help`.
1 parent 0e70791 commit cabff75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rpc/misc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,7 @@ static const CRPCCommand commands[] =
608608
{ // category name actor (function) argNames
609609
// --------------------- ------------------------ ----------------------- ----------
610610
{ "control", "getmemoryinfo", &getmemoryinfo, {"mode"} },
611+
{ "control", "logging", &logging, {"include", "exclude"}},
611612
{ "util", "validateaddress", &validateaddress, {"address"} }, /* uses wallet if enabled */
612613
{ "util", "createmultisig", &createmultisig, {"nrequired","keys"} },
613614
{ "util", "verifymessage", &verifymessage, {"address","signature","message"} },
@@ -617,7 +618,6 @@ static const CRPCCommand commands[] =
617618
{ "hidden", "setmocktime", &setmocktime, {"timestamp"}},
618619
{ "hidden", "echo", &echo, {"arg0","arg1","arg2","arg3","arg4","arg5","arg6","arg7","arg8","arg9"}},
619620
{ "hidden", "echojson", &echo, {"arg0","arg1","arg2","arg3","arg4","arg5","arg6","arg7","arg8","arg9"}},
620-
{ "hidden", "logging", &logging, {"include", "exclude"}},
621621
};
622622

623623
void RegisterMiscRPCCommands(CRPCTable &t)

0 commit comments

Comments
 (0)