Skip to content

Commit 98bdca8

Browse files
soso
authored andcommitted
Split startup logs into separate lines
1 parent 9266fba commit 98bdca8

1 file changed

Lines changed: 4 additions & 13 deletions

File tree

src/main.rs

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -340,12 +340,9 @@ async fn main() -> AppResult<()> {
340340
"面板服务初始化",
341341
format!("数据库 {}", db::database_path().display()),
342342
);
343-
tracing::info!(
344-
project = PROJECT_NAME,
345-
version = %app_version(),
346-
url = PROJECT_URL,
347-
"EmbyPanel startup"
348-
);
343+
tracing::info!("项目名称: {}", PROJECT_NAME);
344+
tracing::info!("项目版本: {}", app_version());
345+
tracing::info!("项目地址: {}", PROJECT_URL);
349346

350347
if state.settings_store.has_admin()? && !state.config.read().await.proxy_configs().is_empty() {
351348
proxy_manager.ensure_running(state.clone()).await?;
@@ -362,13 +359,7 @@ async fn main() -> AppResult<()> {
362359
"管理 API 运行中",
363360
format!("http://{}", listener.local_addr()?),
364361
);
365-
tracing::info!(
366-
project = PROJECT_NAME,
367-
version = %app_version(),
368-
project_url = PROJECT_URL,
369-
ui = %format!("http://{}/ui/", listener.local_addr()?),
370-
"EmbyPanel management UI listening"
371-
);
362+
tracing::info!("管理 UI: http://{}/ui/", listener.local_addr()?);
372363

373364
let result = axum::serve(listener, app)
374365
.with_graceful_shutdown(shutdown_signal())

0 commit comments

Comments
 (0)