From 08de49dab1d83fab0c0ea56887e4129af35e8cec Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 15 Nov 2022 02:25:22 +0800 Subject: [PATCH] make testing a little more ergonomic --- services/shellchat/src/cmds/test.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/shellchat/src/cmds/test.rs b/services/shellchat/src/cmds/test.rs index 9e845b089..719c99c53 100644 --- a/services/shellchat/src/cmds/test.rs +++ b/services/shellchat/src/cmds/test.rs @@ -666,7 +666,9 @@ impl<'a> ShellCmdApi<'a> for Test { } } "hpstate" => { - write!(ret, "HP state: {:?}", self.codec.poll_headphone_state()).ok(); + let state = self.codec.poll_headphone_state(); + log::info!("{:?}", state); + write!(ret, "{:?}", state).ok(); } "ecup" => { let ecup_conn = env.xns.request_connection_blocking("__ECUP server__").unwrap();