diff --git a/server/src/rpc.rs b/server/src/rpc.rs index 86962a63..a04c5968 100644 --- a/server/src/rpc.rs +++ b/server/src/rpc.rs @@ -46,7 +46,12 @@ impl Rpc { None => None, }; - info!("method={:?} account={:?}", v.method, account.name); + let account_name = match &account { + Some(a) => a.name.clone(), + None => "none".to_string(), + }; + + info!("method={:?} account={:?}", v.method, account_name); // check the method // if no auth required