Skip to content
This repository was archived by the owner on Apr 5, 2019. It is now read-only.

Commit ee75383

Browse files
committed
Add req/response log
1 parent bee493f commit ee75383

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/frontend/handler.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@ impl Handler for WebSocketHandler {
3333

3434
let response: Option<String> = match msg {
3535
ws::Message::Text(text) => {
36+
cinfo!("Receive {}", text);
3637
jsonrpc::handle(|method, arg| self.router.run(self.context.clone(), &method, arg), text)
3738
}
3839
_ => Some(jsonrpc::invalid_format()),
3940
};
4041

42+
cinfo!("Response {:?}", response);
4143
if let Some(response) = response {
4244
self.out.send(ws::Message::Text(response))
4345
} else {

0 commit comments

Comments
 (0)