updates
This commit is contained in:
parent
91e761d5ef
commit
5cc1e92de0
@ -10,5 +10,5 @@ tonic = { version = "0.13", features = ["transport"] }
|
||||
anyhow = "1.0"
|
||||
navka_common = { path = "../common" }
|
||||
tracing = { version = "0.1", features = ["std"] }
|
||||
tracing-subscriber = "0.3"
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt"] }
|
||||
libc = "0.2"
|
||||
|
||||
@ -49,7 +49,7 @@ impl Relay for Handler {
|
||||
}
|
||||
_ => {
|
||||
error!(?msg.kind, "⚠️ malformed packet");
|
||||
let bad_len = match &msg.kind {
|
||||
let _bad_len = match &msg.kind {
|
||||
Some(hid_report::Kind::KeyboardReport(v)) => v.len(),
|
||||
Some(hid_report::Kind::MouseReport(v)) => v.len(),
|
||||
_ => 0,
|
||||
@ -70,8 +70,7 @@ impl Relay for Handler {
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> anyhow::Result<()> {
|
||||
tracing_subscriber::fmt()
|
||||
.with_env_filter(
|
||||
fmt().with_env_filter(
|
||||
// honour RUST_LOG but fall back to very chatty defaults
|
||||
EnvFilter::try_from_default_env().unwrap_or_else(|_| {
|
||||
EnvFilter::new(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user