diff --git a/Cargo.lock b/Cargo.lock index 50ad891..d471c51 100755 --- a/Cargo.lock +++ b/Cargo.lock @@ -2293,6 +2293,7 @@ dependencies = [ "static_assertions", "thiserror 2.0.9", "tokio", + "tracing", "turbojpeg", "vcpkg", "walkdir", diff --git a/Cargo.toml b/Cargo.toml index 3e3cc00..9997178 100755 --- a/Cargo.toml +++ b/Cargo.toml @@ -78,6 +78,7 @@ sha2 = "0.10.8" static_assertions = "1.1.0" thiserror = "2.0.0" tokio = { version = "1.38", features = ["fs", "io-util", "macros", "rt-multi-thread", "sync"] } +tracing = "0.1.41" turbojpeg = { version = "1.1.1", features = ["image"] } walkdir = "2.5.0" wild = "2.2.1" diff --git a/src/cmd/index.rs b/src/cmd/index.rs index 0aeb8e9..203693e 100644 --- a/src/cmd/index.rs +++ b/src/cmd/index.rs @@ -17,6 +17,7 @@ use photohash::Database; use serde::ser::SerializeSeq; use serde::Serialize; use serde::Serializer; +use tracing::trace; use std::path::Path; use std::path::PathBuf; use std::sync::Arc; @@ -158,7 +159,7 @@ impl Index { { Ok(awake) => Some(awake), Err(e) => { - eprintln!("WARNING: keepawake failed, ignoring: {}", e); + trace!("WARNING: keepawake failed, ignoring: {}", e); None } };