bin/drk2: Debug outgoing JSON.

This commit is contained in:
parazyd
2021-09-17 13:30:06 +02:00
parent 7b94df5ab4
commit cb1e47f5d2

View File

@@ -23,6 +23,7 @@ impl Drk {
async fn request(&self, r: jsonrpc::JsonRequest) -> Result<Value> {
let reply: JsonResult;
debug!(target: "DRK", "--> {:#?}", serde_json::to_string(&r)?);
match jsonrpc::send_request(self.url.clone(), json!(r)).await {
Ok(v) => reply = v,
Err(e) => return Err(e),