remove logs

This commit is contained in:
houseme
2025-04-28 21:16:07 +08:00
parent 82c8b7f308
commit 95ababe7a8
2 changed files with 2 additions and 9 deletions

View File

@@ -156,11 +156,11 @@ time = { version = "0.3.41", features = [
"serde",
] }
tokio = { version = "1.44.2", features = ["fs", "rt-multi-thread"] }
tonic = { version = "0.13.0", features = ["gzip"] }
tonic-build = "0.13.0"
tokio-rustls = { version = "0.26.2", default-features = false }
tokio-stream = "0.1.17"
tokio-util = { version = "0.7.14", features = ["io", "compat"] }
tonic = { version = "0.13.0", features = ["gzip"] }
tonic-build = "0.13.0"
tower = { version = "0.5.2", features = ["timeout"] }
tower-http = { version = "0.6.2", features = ["cors"] }
tracing = "0.1.41"

View File

@@ -230,13 +230,6 @@ pub fn init_telemetry(config: &OtelConfig) -> OtelGuard {
.with(otel_layer)
.with(MetricsLayer::new(meter_provider.clone()))
.init();
info!("Telemetry logging enabled: {:?}", config.local_logging_enabled);
// if config.local_logging_enabled.unwrap_or(false) {
// registry.with(fmt_layer).init();
// } else {
// registry.init();
// }
if !endpoint.is_empty() {
info!(
"OpenTelemetry telemetry initialized with OTLP endpoint: {}, logger_level: {}",