diff options
Diffstat (limited to 'mumd/src/state.rs')
| -rw-r--r-- | mumd/src/state.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mumd/src/state.rs b/mumd/src/state.rs index 791d26c..6e0d908 100644 --- a/mumd/src/state.rs +++ b/mumd/src/state.rs @@ -1,3 +1,4 @@ +use log::*; use mumble_protocol::control::msgs; use std::collections::HashMap; use std::collections::hash_map::Entry; @@ -25,7 +26,7 @@ impl Server { pub fn parse_channel_state(&mut self, msg: Box<msgs::ChannelState>) { if !msg.has_channel_id() { - eprintln!("Can't parse channel state without channel id"); + warn!("Can't parse channel state without channel id"); return; } match self.channels.entry(msg.get_channel_id()) { @@ -36,7 +37,7 @@ impl Server { pub fn parse_user_state(&mut self, msg: Box<msgs::UserState>) { if !msg.has_session() { - eprintln!("Can't parse user state without session"); + warn!("Can't parse user state without session"); return; } match self.users.entry(msg.get_session()) { |
