From b9a8db34b22c83ae1a4f5f446e54dc0d6be0bd40 Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Sat, 26 Sep 2020 14:07:07 -0400 Subject: move log init into its own module --- src/util.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/util.rs') diff --git a/src/util.rs b/src/util.rs index ca50157..77f2dd4 100644 --- a/src/util.rs +++ b/src/util.rs @@ -51,6 +51,8 @@ impl CtxExt for Context { #[inline] fn send_result>(&self, channel: ChannelId, text: A, tts: bool) -> Result { + let text = text.as_ref(); + debug!("sending message {:?} to channel {:?}", text, channel); let result = channel.send_message(self, |m| m.content(text.as_ref()).tts(tts))?; Ok(result.id) } -- cgit v1.3.1