Skip to content

Commit

Permalink
fix: download too long logs (#638)
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi authored Jul 30, 2024
1 parent 20bac0f commit ef7a6df
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
16 changes: 8 additions & 8 deletions Cargo.lock

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

16 changes: 8 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ members = [
]

[workspace.package]
version = "0.1.91"
version = "0.1.92"
authors = ["The Dragonfly Developers"]
homepage = "https://d7y.io/"
repository = "https://github.com/dragonflyoss/client.git"
Expand All @@ -22,13 +22,13 @@ readme = "README.md"
edition = "2021"

[workspace.dependencies]
dragonfly-client = { path = "dragonfly-client", version = "0.1.91" }
dragonfly-client-core = { path = "dragonfly-client-core", version = "0.1.91" }
dragonfly-client-config = { path = "dragonfly-client-config", version = "0.1.91" }
dragonfly-client-storage = { path = "dragonfly-client-storage", version = "0.1.91" }
dragonfly-client-backend = { path = "dragonfly-client-backend", version = "0.1.91" }
dragonfly-client-util = { path = "dragonfly-client-util", version = "0.1.91" }
dragonfly-client-init = { path = "dragonfly-client-init", version = "0.1.91" }
dragonfly-client = { path = "dragonfly-client", version = "0.1.92" }
dragonfly-client-core = { path = "dragonfly-client-core", version = "0.1.92" }
dragonfly-client-config = { path = "dragonfly-client-config", version = "0.1.92" }
dragonfly-client-storage = { path = "dragonfly-client-storage", version = "0.1.92" }
dragonfly-client-backend = { path = "dragonfly-client-backend", version = "0.1.92" }
dragonfly-client-util = { path = "dragonfly-client-util", version = "0.1.92" }
dragonfly-client-init = { path = "dragonfly-client-init", version = "0.1.92" }
thiserror = "1.0"
dragonfly-api = "2.0.141"
reqwest = { version = "0.12.4", features = ["stream", "native-tls", "default-tls", "rustls-tls"] }
Expand Down
4 changes: 2 additions & 2 deletions dragonfly-client/src/metrics/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,8 @@ pub fn collect_upload_task_finished_metrics(
if task_size == TaskSize::Level1 && cost > UPLOAD_TASK_LEVEL1_DURATION_THRESHOLD {
warn!(
"upload task cost is too long: {}ms {}bytes",
cost.as_millis(),
content_length,
cost.as_millis()
);
}

Expand Down Expand Up @@ -405,8 +405,8 @@ pub fn collect_download_task_finished_metrics(
if task_size == TaskSize::Level1 && cost > DOWNLOAD_TASK_LEVEL1_DURATION_THRESHOLD {
warn!(
"download task cost is too long: {}ms {}bytes",
cost.as_millis(),
size,
cost.as_millis()
);
}

Expand Down

0 comments on commit ef7a6df

Please sign in to comment.