Explorar el Código

log warning if loading the audio file fails

cyberta hace 4 años
padre
commit
8e628d2cf0
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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
                 }
             }