mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-24 13:16:28 +00:00
refactor(logging): normalize admin telemetry and error messages (#3430)
This commit is contained in:
@@ -203,7 +203,7 @@ impl Dial9SessionGuard {
|
||||
component = LOG_COMPONENT_OBS,
|
||||
subsystem = LOG_SUBSYSTEM_DIAL9,
|
||||
state = "shutdown_requested",
|
||||
"dial9 state changed"
|
||||
"dial9 state"
|
||||
);
|
||||
// TelemetryGuard handles flushing automatically when dropped
|
||||
}
|
||||
@@ -219,7 +219,7 @@ impl Drop for Dial9SessionGuard {
|
||||
component = LOG_COMPONENT_OBS,
|
||||
subsystem = LOG_SUBSYSTEM_DIAL9,
|
||||
state = "flushed",
|
||||
"dial9 state changed"
|
||||
"dial9 state"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -175,7 +175,7 @@ fn init_stdout_only(_config: &OtelConfig, logger_level: &str, is_production: boo
|
||||
output_format = "json",
|
||||
logger_level,
|
||||
is_production,
|
||||
"local logging state changed"
|
||||
"local logging state"
|
||||
);
|
||||
|
||||
OtelGuard {
|
||||
@@ -293,7 +293,7 @@ fn init_file_logging_internal(
|
||||
stdout_mirror_enabled = stdout_guard.is_some(),
|
||||
is_production,
|
||||
logger_level,
|
||||
"local logging state changed"
|
||||
"local logging state"
|
||||
);
|
||||
|
||||
Ok(OtelGuard {
|
||||
@@ -482,7 +482,7 @@ pub fn spawn_cleanup_task(
|
||||
zstd_level,
|
||||
zstd_fallback_to_gzip,
|
||||
zstd_workers,
|
||||
"log cleaner state changed"
|
||||
"log cleaner state"
|
||||
);
|
||||
|
||||
tokio::spawn(async move {
|
||||
|
||||
Reference in New Issue
Block a user