mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-18 10:43:15 +00:00
remove logs
This commit is contained in:
+2
-2
@@ -156,11 +156,11 @@ time = { version = "0.3.41", features = [
|
|||||||
"serde",
|
"serde",
|
||||||
] }
|
] }
|
||||||
tokio = { version = "1.44.2", features = ["fs", "rt-multi-thread"] }
|
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-rustls = { version = "0.26.2", default-features = false }
|
||||||
tokio-stream = "0.1.17"
|
tokio-stream = "0.1.17"
|
||||||
tokio-util = { version = "0.7.14", features = ["io", "compat"] }
|
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 = { version = "0.5.2", features = ["timeout"] }
|
||||||
tower-http = { version = "0.6.2", features = ["cors"] }
|
tower-http = { version = "0.6.2", features = ["cors"] }
|
||||||
tracing = "0.1.41"
|
tracing = "0.1.41"
|
||||||
|
|||||||
@@ -230,13 +230,6 @@ pub fn init_telemetry(config: &OtelConfig) -> OtelGuard {
|
|||||||
.with(otel_layer)
|
.with(otel_layer)
|
||||||
.with(MetricsLayer::new(meter_provider.clone()))
|
.with(MetricsLayer::new(meter_provider.clone()))
|
||||||
.init();
|
.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() {
|
if !endpoint.is_empty() {
|
||||||
info!(
|
info!(
|
||||||
"OpenTelemetry telemetry initialized with OTLP endpoint: {}, logger_level: {}",
|
"OpenTelemetry telemetry initialized with OTLP endpoint: {}, logger_level: {}",
|
||||||
|
|||||||
Reference in New Issue
Block a user