Skip to content

Commit

Permalink
Switch to tracing crate for logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonwhite committed Dec 28, 2024
1 parent e4d826d commit 1f28592
Show file tree
Hide file tree
Showing 12 changed files with 163 additions and 127 deletions.
189 changes: 113 additions & 76 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,22 @@ humansize = "2"
humantime = "2"
hyper = { version = "0.14", features = ["server", "http1", "http2", "tcp", "stream"] }
linked-hash-map = { version = "0.5", features = ["serde_impl"] }
log = "0.4"
pretty_env_logger = "0.4"
rand = { version = "0.8", optional = true }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
sha2 = "0.10"
structopt = "0.3"
tokio = { version = "1", features = ["full"] }
tokio-util = { version = "0.7", features = ["full"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
url = "2"
uuid = { version = "1.1", features = ["v4"] }

[dev-dependencies]
rand = "0.8"
tempfile = "3"
duct = "0.13"
env_logger = "0.9"
toml = "0.5"

[dependencies.rusoto_core]
Expand Down
2 changes: 1 addition & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ where
let size = match size {
Ok(size) => size,
Err(err) => {
log::error!("batch response error: {}", err);
tracing::error!("batch response error: {err}");

// Return a generic "500 - Internal Server Error" for objects that
// we failed to get the size of. This is usually caused by some
Expand Down
Loading

0 comments on commit 1f28592

Please sign in to comment.