From 4e8ce911eb4cb2d7fd283bce17b48ce222baf92a Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Thu, 26 Sep 2019 08:58:28 -0400 Subject: Put missing log level change back. --- src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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")); } -- cgit v1.2.3