From 7a7499aeaa45a33aed4b3bfd339c950fa21e1a08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Mon, 12 Oct 2020 21:04:22 +0200 Subject: change to actual logging (#2) --- mumd/src/state.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mumd/src/state.rs') 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) { 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) { 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()) { -- cgit v1.2.1