"...git@developer.sourcefind.cn:OpenDAS/openpcdet.git" did not exist on "abd7b7f068b1d41a3c38e81212c197ec358ac72a"
Commit f46f6d0e authored by Graham King's avatar Graham King Committed by GitHub
Browse files

fix(runtime): Shutdown message from eprintln to tracing debug (#219)

parent 47e3439c
...@@ -313,29 +313,6 @@ version = "1.4.0" ...@@ -313,29 +313,6 @@ version = "1.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
[[package]]
name = "aws-lc-rs"
version = "1.12.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dabb68eb3a7aa08b46fddfd59a3d55c978243557a90ab804769f7e20e67d2b01"
dependencies = [
"aws-lc-sys",
"zeroize",
]
[[package]]
name = "aws-lc-sys"
version = "0.27.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6bbe221bbf523b625a4dd8585c7f38166e31167ec2ca98051dbcb4c3b6e825d2"
dependencies = [
"bindgen 0.69.5",
"cc",
"cmake",
"dunce",
"fs_extra",
]
[[package]] [[package]]
name = "axum" name = "axum"
version = "0.6.20" version = "0.6.20"
...@@ -783,7 +760,6 @@ dependencies = [ ...@@ -783,7 +760,6 @@ dependencies = [
"num_cpus", "num_cpus",
"rand 0.8.5", "rand 0.8.5",
"reqwest 0.12.14", "reqwest 0.12.14",
"rustls 0.23.23",
"serde", "serde",
"serde_json", "serde_json",
"thiserror 1.0.69", "thiserror 1.0.69",
...@@ -1502,12 +1478,6 @@ dependencies = [ ...@@ -1502,12 +1478,6 @@ dependencies = [
"syn 2.0.100", "syn 2.0.100",
] ]
[[package]]
name = "dunce"
version = "1.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813"
[[package]] [[package]]
name = "dyn-clone" name = "dyn-clone"
version = "1.0.19" version = "1.0.19"
...@@ -1600,13 +1570,13 @@ dependencies = [ ...@@ -1600,13 +1570,13 @@ dependencies = [
"async-openai", "async-openai",
"async-stream", "async-stream",
"async-trait", "async-trait",
"candle-hf-hub",
"clap", "clap",
"dialoguer", "dialoguer",
"dynamo-llm", "dynamo-llm",
"dynamo-runtime", "dynamo-runtime",
"futures", "futures",
"futures-util", "futures-util",
"hf-hub",
"humantime", "humantime",
"netlink-packet-route", "netlink-packet-route",
"rtnetlink", "rtnetlink",
...@@ -2047,12 +2017,6 @@ dependencies = [ ...@@ -2047,12 +2017,6 @@ dependencies = [
"percent-encoding", "percent-encoding",
] ]
[[package]]
name = "fs_extra"
version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c"
[[package]] [[package]]
name = "fuchsia-zircon" name = "fuchsia-zircon"
version = "0.3.3" version = "0.3.3"
...@@ -5403,7 +5367,6 @@ version = "0.23.23" ...@@ -5403,7 +5367,6 @@ version = "0.23.23"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "47796c98c480fce5406ef69d1c76378375492c3b0a0de587be0c1d9feb12f395" checksum = "47796c98c480fce5406ef69d1c76378375492c3b0a0de587be0c1d9feb12f395"
dependencies = [ dependencies = [
"aws-lc-rs",
"log", "log",
"once_cell", "once_cell",
"ring", "ring",
...@@ -5481,7 +5444,6 @@ version = "0.102.8" ...@@ -5481,7 +5444,6 @@ version = "0.102.8"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "64ca1bc8749bd4cf37b5ce386cc146580777b4e8572c7b97baf22c83f444bee9" checksum = "64ca1bc8749bd4cf37b5ce386cc146580777b4e8572c7b97baf22c83f444bee9"
dependencies = [ dependencies = [
"aws-lc-rs",
"ring", "ring",
"rustls-pki-types", "rustls-pki-types",
"untrusted", "untrusted",
......
...@@ -51,7 +51,7 @@ tokio-util = { workspace = true } ...@@ -51,7 +51,7 @@ tokio-util = { workspace = true }
tracing = { workspace = true } tracing = { workspace = true }
async-openai = { version = "0.27.2" } async-openai = { version = "0.27.2" }
candle-hf-hub = { version = "0.3.3", default-features = false, features = ["tokio", "rustls-tls"] } hf-hub = { version = "0.4.2", default-features = false, features = ["tokio", "rustls-tls"] }
clap = { version = "4.5", features = ["derive", "env"] } clap = { version = "4.5", features = ["derive", "env"] }
dialoguer = { version = "0.11", default-features = false, features = ["editor", "history"] } dialoguer = { version = "0.11", default-features = false, features = ["editor", "history"] }
futures-util = { version = "0.3" } futures-util = { version = "0.3" }
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
use candle_hf_hub::api::tokio::ApiBuilder; use hf_hub::api::tokio::ApiBuilder;
use std::path::{Path, PathBuf}; use std::path::{Path, PathBuf};
const IGNORED: [&str; 3] = [".gitattributes", "LICENSE", "README.md"]; const IGNORED: [&str; 3] = [".gitattributes", "LICENSE", "README.md"];
......
...@@ -132,8 +132,8 @@ impl Worker { ...@@ -132,8 +132,8 @@ impl Worker {
tokio::select! { tokio::select! {
_ = cancel_token.cancelled() => { _ = cancel_token.cancelled() => {
eprintln!("{}", SHUTDOWN_MESSAGE); tracing::debug!("{}", SHUTDOWN_MESSAGE);
eprintln!("{} {} seconds", SHUTDOWN_TIMEOUT_MESSAGE, timeout); tracing::debug!("{} {} seconds", SHUTDOWN_TIMEOUT_MESSAGE, timeout);
} }
_ = app_tx.closed() => { _ = app_tx.closed() => {
...@@ -146,7 +146,7 @@ impl Worker { ...@@ -146,7 +146,7 @@ impl Worker {
} }
_ = tokio::time::sleep(tokio::time::Duration::from_secs(timeout)) => { _ = tokio::time::sleep(tokio::time::Duration::from_secs(timeout)) => {
eprintln!("Application did not shutdown in time; terminating"); tracing::debug!("Application did not shutdown in time; terminating");
std::process::exit(911); std::process::exit(911);
} }
}?; }?;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment