Explorar el Código

bin/drk2: Debug outgoing JSON.

parazyd hace 4 años
padre
commit
cb1e47f5d2
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/bin/drk2.rs

+ 1 - 0
src/bin/drk2.rs

@@ -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),