chore: 移除 reminderLog 方法,仅保留 agentLog 路径修复
This commit is contained in:
parent
8b6f898d3b
commit
b8dfd4d85b
@ -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)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user