This commit is contained in:
Christien Rioux 2023-12-08 13:50:02 -05:00
parent d7783e27dd
commit 88d13d36c9

View File

@ -1461,7 +1461,7 @@ impl VeilidAPI {
dc.opened_record_contexts.insert(*record.key(), rc); dc.opened_record_contexts.insert(*record.key(), rc);
debug!("DHT Record Created:\n{:#?}", record); debug!("DHT Record Created:\n{:#?}", record);
Ok(format!("Created: {:?}", record)) Ok(format!("Created: {:?} : {:?}", record.key(), record))
} }
async fn debug_record_open(&self, args: Vec<String>) -> VeilidAPIResult<String> { async fn debug_record_open(&self, args: Vec<String>) -> VeilidAPIResult<String> {
@ -1528,9 +1528,9 @@ impl VeilidAPI {
Ok(v) => v, Ok(v) => v,
}; };
let out = if let Some(value) = value { let out = if let Some(value) = value {
format!("{:?}", value) format!("Newer value found: {:?}", value)
} else { } else {
"No value data returned".to_owned() "Success".to_owned()
}; };
Ok(out) Ok(out)
} }
@ -1696,9 +1696,9 @@ impl VeilidAPI {
} else if command == "info" { } else if command == "info" {
self.debug_record_info(args).await self.debug_record_info(args).await
} else if command == "watch" { } else if command == "watch" {
self.debug_record_info(args).await self.debug_record_watch(args).await
} else if command == "cancel" { } else if command == "cancel" {
self.debug_record_info(args).await self.debug_record_cancel(args).await
} else { } else {
Ok(">>> Unknown command\n".to_owned()) Ok(">>> Unknown command\n".to_owned())
} }