diff --git a/torrential/src/droplet/mod.rs b/torrential/src/droplet/mod.rs index 5909f874..a80abaa3 100644 --- a/torrential/src/droplet/mod.rs +++ b/torrential/src/droplet/mod.rs @@ -13,9 +13,10 @@ where T: AsyncFn(Arc, TorrentialBound) -> Result<(), anyhow::Error>, { let message_id = message.message_id.clone(); + let message_type = message.type_.enum_value().unwrap(); let result = rpc(server.clone(), message).await; if let Err(err) = result { - warn!("manifest generation failed with err: {err:?}"); + warn!("rpc call for {message_type:?} failed with error: {err:?}"); let mut manifest_err = RpcError::new(); manifest_err.error = err.to_string(); let _ = server diff --git a/torrential/src/server/mod.rs b/torrential/src/server/mod.rs index a73f9612..e98ce058 100644 --- a/torrential/src/server/mod.rs +++ b/torrential/src/server/mod.rs @@ -18,7 +18,7 @@ use crate::{ droplet::{ backend::{has_backend_rpc, list_files_rpc, peek_file_rpc}, call_rpc, - cert::generate_client_cert_rpc, + cert::{generate_client_cert_rpc, generate_root_ca_rpc}, manifest::generate_manifest_rpc, }, proto::core::{DropBound, DropBoundType, TorrentialBound, TorrentialBoundType}, @@ -64,7 +64,7 @@ impl DropServer { spawn_rpc!(myself, message, generate_manifest_rpc); } TorrentialBoundType::GENERATE_ROOT_CA => { - spawn_rpc!(myself, message, generate_manifest_rpc); + spawn_rpc!(myself, message, generate_root_ca_rpc); } TorrentialBoundType::GENERATE_CLIENT_CERT => { spawn_rpc!(myself, message, generate_client_cert_rpc);