aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2019-09-26 08:58:28 -0400
committerBrian Cully <bjc@kublai.com>2019-09-26 09:00:26 -0400
commit4e8ce911eb4cb2d7fd283bce17b48ce222baf92a (patch)
treed539eb386ba47fa0ed76397171658fdcfd639435
parent71364c8336edaf45071e3775d07f291b6fecd41d (diff)
downloadbootkbd-4e8ce911eb4cb2d7fd283bce17b48ce222baf92a.tar.gz
bootkbd-4e8ce911eb4cb2d7fd283bce17b48ce222baf92a.zip
Put missing log level change back.
-rw-r--r--src/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 11caafe..a1357c7 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -2,7 +2,7 @@
#![no_std]
-use log::{self, debug, error, info, trace, warn, LevelFilter};
+use log::{self, error, info, trace, warn, LevelFilter};
use usb_host::{
ConfigurationDescriptor, DescriptorType, DeviceDescriptor, Direction, Driver, DriverError,
Endpoint, EndpointDescriptor, InterfaceDescriptor, RequestCode, RequestDirection, RequestKind,
@@ -326,6 +326,8 @@ impl Device {
// If we made it this far, thins should be ok, so
// throttle the logging.
+ log::set_max_level(LevelFilter::Info);
+ self.state = DeviceState::Running
} else {
return Err(TransferError::Permanent("no boot keyboard"));
}