fix log bug

This commit is contained in:
ntr 2019-05-19 19:25:35 +10:00
parent 5f969abc17
commit 6091e23631

View File

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