From 6091e236316e3c82b195dab19e8c6b83cdea7185 Mon Sep 17 00:00:00 2001 From: ntr Date: Sun, 19 May 2019 19:25:35 +1000 Subject: [PATCH] fix log bug --- server/src/rpc.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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