diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2020-10-12 21:04:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-12 21:04:22 +0200 |
| commit | 7a7499aeaa45a33aed4b3bfd339c950fa21e1a08 (patch) | |
| tree | 4cbc408c5813bc37a213cd0476417e7b905fd83e /mumd/src/state.rs | |
| parent | 2deba9cda37de3fcc04d3ec11ffea0f18a0dbb69 (diff) | |
| download | mum-7a7499aeaa45a33aed4b3bfd339c950fa21e1a08.tar.gz | |
change to actual logging (#2)
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()) { |
