From f5ca4bd2f78fb8cd1f7c0999567650a2ed0aa003 Mon Sep 17 00:00:00 2001 From: Blizzard Finnegan Date: Fri, 23 Jun 2023 11:19:41 -0400 Subject: [PATCH] Exchange read logs for write logs --- src/tty.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tty.rs b/src/tty.rs index 4e298f6..5e90bae 100755 --- a/src/tty.rs +++ b/src/tty.rs @@ -120,7 +120,7 @@ impl TTY{ } pub fn write_to_device(&mut self,command:Command) -> bool { - log::trace!("writing {:?} to tty {}...", command, self.tty.name().unwrap_or("unknown".to_string())); + log::debug!("writing {:?} to tty {}...", command, self.tty.name().unwrap_or("unknown".to_string())); let output = self.tty.write_all(COMMAND_MAP.get(&command).unwrap().as_bytes()).is_ok(); _ = self.tty.flush(); if command == Command::Login { std::thread::sleep(std::time::Duration::from_secs(2)); } @@ -186,7 +186,7 @@ impl TTY{ return Response::Other; } else { - log::debug!("Read an empty string from device {:?}. Possible read error.", self); + log::trace!("Read an empty string from device {:?}. Possible read error.", self); return Response::Empty; }; }