feat(obs): optimize WriteMode selection logic in init_telemetry (#546)

- Refactor WriteMode selection to ensure all variables moved into thread closures are owned types, preventing lifetime issues.
- Simplify and clarify WriteMode assignment for production and non-production environments.
- Improve code readability and maintainability for logger initialization.
This commit is contained in:
houseme
2025-09-16 08:25:37 +08:00
committed by GitHub
parent cafec06b7e
commit a12a3bedc3
8 changed files with 85 additions and 35 deletions
Generated
+1
View File
@@ -2942,6 +2942,7 @@ dependencies = [
"chrono",
"crossbeam-channel",
"crossbeam-queue",
"flate2",
"log",
"notify-debouncer-mini",
"nu-ansi-term",