aboutsummaryrefslogtreecommitdiffstats
path: root/mumd/src/state.rs
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2020-10-12 21:04:22 +0200
committerGitHub <noreply@github.com>2020-10-12 21:04:22 +0200
commit7a7499aeaa45a33aed4b3bfd339c950fa21e1a08 (patch)
tree4cbc408c5813bc37a213cd0476417e7b905fd83e /mumd/src/state.rs
parent2deba9cda37de3fcc04d3ec11ffea0f18a0dbb69 (diff)
downloadmum-7a7499aeaa45a33aed4b3bfd339c950fa21e1a08.tar.gz
change to actual logging (#2)
Diffstat (limited to 'mumd/src/state.rs')
-rw-r--r--mumd/src/state.rs5
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()) {