fix(gitserver,git-hook): pass defer argument to init_tracing_subscriber
Some checks are pending
CI / Rust Lint & Check (push) Waiting to run
CI / Rust Tests (push) Waiting to run
CI / Frontend Lint & Type Check (push) Waiting to run
CI / Frontend Build (push) Blocked by required conditions

The init_tracing_subscriber() function now takes a second `defer: bool`
argument. These binaries do not use OTLP, so pass false.
This commit is contained in:
ZhenYi 2026-04-22 23:32:43 +08:00
parent 7187638c10
commit 6310dfda2f
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ async fn main() -> anyhow::Result<()> {
// 2. Init tracing logging
let log_level = cfg.log_level().unwrap_or_else(|_| "info".to_string());
init_tracing_subscriber(&log_level);
init_tracing_subscriber(&log_level, false);
// 3. Connect to database
let db = AppDatabase::init(&cfg).await?;

View File

@ -14,7 +14,7 @@ struct Args {
async fn main() -> anyhow::Result<()> {
let args = Args::parse();
let cfg = AppConfig::load();
init_tracing_subscriber(&args.log_level);
init_tracing_subscriber(&args.log_level, false);
let http_handle = tokio::spawn(git::http::run_http(cfg.clone()));
let ssh_handle = tokio::spawn(git::ssh::run_ssh(cfg));