Logs instead of prints

This commit is contained in:
Leon Böttger committed 2025-05-16 13:19:01 +02:00
1 parent 6e33998fb6
commit ca722b8894
7 files changed
+16 -18

No files matched your search

+2 -2
View File
@@ -12,7 +12,7 @@ class AudioManager {
static func playSound() {
guard let soundURL = Bundle.main.url(forResource: "timeIsNow", withExtension: "mp3") else {
print("Sound file not found")
log("Sound file not found")
return
}
@@ -20,7 +20,7 @@ class AudioManager {
audioPlayer = try AVAudioPlayer(contentsOf: soundURL)
audioPlayer?.play()
} catch {
print("Error playing sound: \(error.localizedDescription)")
log("Error playing sound: \(error.localizedDescription)")
}
}
}