refactor(gateway): shorten logging targets from sgl_model_gateway to smg (#16328)

This commit is contained in:
Chang Su
2026-01-02 21:12:33 -08:00
committed by GitHub
parent 9821fae5c6
commit b23e7ed13c
8 changed files with 22 additions and 22 deletions
+6 -6
View File
@@ -185,7 +185,7 @@ impl WasmThreadPool {
let num_workers = config.thread_pool_size.clamp(1, max_workers);
debug!(
target: "sgl_model_gateway::wasm::runtime",
target: "smg::wasm::runtime",
"Initializing WASM runtime with {} workers",
num_workers
);
@@ -200,7 +200,7 @@ impl WasmThreadPool {
Ok(rt) => rt,
Err(e) => {
error!(
target: "sgl_model_gateway::wasm::runtime",
target: "smg::wasm::runtime",
worker_id = worker_id,
"Failed to create tokio runtime: {}",
e
@@ -242,7 +242,7 @@ impl WasmThreadPool {
config: WasmRuntimeConfig,
) {
debug!(
target: "sgl_model_gateway::wasm::runtime",
target: "smg::wasm::runtime",
worker_id = worker_id,
thread_id = ?std::thread::current().id(),
"Worker started"
@@ -270,7 +270,7 @@ impl WasmThreadPool {
Ok(engine) => engine,
Err(e) => {
error!(
target: "sgl_model_gateway::wasm::runtime",
target: "smg::wasm::runtime",
worker_id = worker_id,
"Failed to create engine: {}",
e
@@ -297,7 +297,7 @@ impl WasmThreadPool {
});
debug!(
target: "sgl_model_gateway::wasm::runtime",
target: "smg::wasm::runtime",
worker_id = worker_id,
epoch_interval_ms = EPOCH_INTERVAL_MS,
"Epoch incrementer started for timeout enforcement"
@@ -308,7 +308,7 @@ impl WasmThreadPool {
Ok(task) => task,
Err(_) => {
debug!(
target: "sgl_model_gateway::wasm::runtime",
target: "smg::wasm::runtime",
worker_id = worker_id,
"Worker shutting down"
);