doc: correct logging rpc return type and example

This commit is contained in:
fanquake committed 2019-01-29 23:05:52 +08:00
1 parent 7275365c9b
commit e1c27da303
1 file changed
+2 -2
+2 -2
View File
@@ -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());
} }