chore: 移除 reminderLog 方法,仅保留 agentLog 路径修复

This commit is contained in:
JOJO 2026-05-01 01:26:39 +08:00
parent 8b6f898d3b
commit b8dfd4d85b

View File

@ -470,21 +470,6 @@ final class AppDelegate: NSObject, NSApplicationDelegate, NSSpeechSynthesizerDel
}
}
/// Reminder ~/Library/Logs/VoiceInput/reminder.log
private func reminderLog(_ msg: String) {
let logPath = logDir + "/reminder.log"
let ts = ISO8601DateFormatter().string(from: Date())
let line = "[\(ts)] \(msg)\n"
if let handle = FileHandle(forWritingAtPath: logPath) {
handle.seekToEndOfFile()
handle.write(line.data(using: .utf8)!)
handle.closeFile()
} else {
//
try? line.write(toFile: logPath, atomically: true, encoding: .utf8)
}
}
private func showAgentNotch() {
showAgentNotchInternal(isTextInput: false)
}