Fastest and only macOS Dictation app with on-device STT and custom trained AI enhancement model. Windows, iOS testflight! Android, Linux waitlist open! A local Wispr Flow alternative. Follow https://x.com/fluidvoiceapp for more
fix(logging): keep dictated text out of Fluid.log (#1079)
ALTIC35eaa20a5f3a
diff --git a/Sources/Fluid/ContentView.swift b/Sources/Fluid/ContentView.swiftindex 6380a96d..4fd8ea9b 100644--- a/Sources/Fluid/ContentView.swift+++ b/Sources/Fluid/ContentView.swift@@ -3113,7 +3113,7 @@ struct ContentView: View {self.rewriteModeService.clearState()return}- DebugLogger.shared.info("Processing rewrite with instruction: \(transcribedText)", source: "ContentView")+ DebugLogger.shared.info("Processing rewrite instruction (\(transcribedText.count) chars)", source: "ContentView")AnalyticsService.shared.recordModelUsage(role: .transcription,mode: .edit,@@ -3127,7 +3127,7 @@ struct ContentView: View {// If this was a command recording, process the commandif wasCommandMode {guard !cancelledAtASRStop else { return }- DebugLogger.shared.info("Processing command: \(transcribedText)", source: "ContentView")+ DebugLogger.shared.info("Processing command (\(transcribedText.count) chars)", source: "ContentView")AnalyticsService.shared.recordModelUsage(role: .transcription,mode: .command,@@ -4455,7 +4455,7 @@ struct ContentView: View {self.rewriteModeService.setPromptAppBundleID(appInfo.bundleId)let hasOriginalText = !self.rewriteModeService.originalText.isEmptyDebugLogger.shared.info(- "Processing \(hasOriginalText ? "rewrite" : "write/improve") - instruction: '\(instruction)', originalText length: \(self.rewriteModeService.originalText.count)",+ "Processing \(hasOriginalText ? "rewrite" : "write/improve") - instruction length: \(instruction.count), originalText length: \(self.rewriteModeService.originalText.count)",source: "ContentView")@@ -4592,7 +4592,7 @@ struct ContentView: View {private func processCommandWithVoice(_ command: String, lifecycleID: UInt64) async {let isOutputValid: @MainActor () -> Bool = { self.overlayLifecycleID == lifecycleID && self.cancelledOutputLifecycleID != lifecycleID }guard isOutputValid() else { return }- DebugLogger.shared.info("Processing voice command: '\(command)'", source: "ContentView")+ DebugLogger.shared.info("Processing voice command (\(command.count) chars)", source: "ContentView")// Show processing animationself.menuBarManager.setProcessing(true)