Skip to content

Commit a0d657b

Browse files
committed
Merge #15272: doc: correct logging return type and RPC example
e1c27da doc: correct logging rpc return type and example (fanquake) Pull request description: Logging status is returned as a bool. ``` src/bitcoin-cli logging "[\"all\"]" "[\"http\"]" { "net": true, "tor": true, "mempool": true, "http": false, "bench": true, "zmq": true, "db": true, "rpc": true, "estimatefee": true, "addrman": true, "selectcoins": true, "reindex": true, "cmpctblock": true, "rand": true, "prune": true, "proxy": true, "mempoolrej": true, "libevent": true, "coindb": true, "qt": true, "leveldb": true } ``` Also corrects the RPC example so that `libevent` logging will actually be turned off. Tree-SHA512: 2de7130df51688d2d6636c12fd56326362794118a10efc8100f0bf541a7da00a12a6cd9d75e599a104513a050bbe49b418ea460ee8033ac6cf6ffb8e8e9140d6
2 parents b9d3df8 + e1c27da commit a0d657b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rpc/misc.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,13 +404,13 @@ UniValue logging(const JSONRPCRequest& request)
404404
},
405405
RPCResult{
406406
"{ (json object where keys are the logging categories, and values indicates its status\n"
407-
" \"category\": 0|1, (numeric) if being debug logged or not. 0:inactive, 1:active\n"
407+
" \"category\": true|false, (bool) if being debug logged or not. false:inactive, true:active\n"
408408
" ...\n"
409409
"}\n"
410410
},
411411
RPCExamples{
412412
HelpExampleCli("logging", "\"[\\\"all\\\"]\" \"[\\\"http\\\"]\"")
413-
+ HelpExampleRpc("logging", "[\"all\"], \"[libevent]\"")
413+
+ HelpExampleRpc("logging", "[\"all\"], [\"libevent\"]")
414414
},
415415
}.ToString());
416416
}

0 commit comments

Comments
 (0)