doc: correct logging rpc return type and example

This commit is contained in:
fanquake 2019-01-27 22:47:55 +08:00
parent 7275365c9b
commit e1c27da303
No known key found for this signature in database
GPG key ID: 2EEB9F5CC09526C1

View file

@ -404,13 +404,13 @@ UniValue logging(const JSONRPCRequest& request)
},
RPCResult{
"{ (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"
},
RPCExamples{
HelpExampleCli("logging", "\"[\\\"all\\\"]\" \"[\\\"http\\\"]\"")
+ HelpExampleRpc("logging", "[\"all\"], \"[libevent]\"")
+ HelpExampleRpc("logging", "[\"all\"], [\"libevent\"]")
},
}.ToString());
}