doc: correct logging rpc return type and example
This commit is contained in:
1 file changed
+2
-2
+2
-2
@@ -404,13 +404,13 @@ UniValue logging(const JSONRPCRequest& request)
|
|||||||
},
|
},
|
||||||
RPCResult{
|
RPCResult{
|
||||||
"{ (json object where keys are the logging categories, and values indicates its status\n"
|
"{ (json object where keys are the logging categories, and values indicates its status\n"
|
||||||
" \"category\": 0|1, (numeric) if being debug logged or not. 0:inactive, 1:active\n"
|
" \"category\": true|false, (bool) if being debug logged or not. false:inactive, true:active\n"
|
||||||
" ...\n"
|
" ...\n"
|
||||||
"}\n"
|
"}\n"
|
||||||
},
|
},
|
||||||
RPCExamples{
|
RPCExamples{
|
||||||
HelpExampleCli("logging", "\"[\\\"all\\\"]\" \"[\\\"http\\\"]\"")
|
HelpExampleCli("logging", "\"[\\\"all\\\"]\" \"[\\\"http\\\"]\"")
|
||||||
+ HelpExampleRpc("logging", "[\"all\"], \"[libevent]\"")
|
+ HelpExampleRpc("logging", "[\"all\"], [\"libevent\"]")
|
||||||
},
|
},
|
||||||
}.ToString());
|
}.ToString());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user