This commit is contained in:
Brad Stein 2025-06-16 00:10:03 -05:00
parent 91e761d5ef
commit 5cc1e92de0
2 changed files with 3 additions and 4 deletions

View File

@ -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"

View File

@ -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(