Ver código fonte

log warning if loading the audio file fails

cyberta 4 anos atrás
pai
commit
8e628d2cf0
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      deltachat-ios/Chat/AudioController.swift

+ 2 - 0
deltachat-ios/Chat/AudioController.swift

@@ -106,6 +106,8 @@ open class AudioController: NSObject, AVAudioPlayerDelegate, AudioMessageCellDel
                     DispatchQueue.main.async {
                         successHandler(messageId, Double(durationInSeconds))
                     }
+                case .failed:
+                    logger.warning("loading audio message \(messageId) failed: \(String(describing: error?.localizedDescription))")
                 default: break
                 }
             }