mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-21 22:05:59 +00:00
Logs instead of prints
This commit is contained in:
1 parent
6e33998fb6
commit
ca722b8894
7 files changed
+16
-18
No files matched your search
@@ -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)")
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user