IOS-1540 Back out c41e768ecd88: Forcing the use of os_log for WARN. IOS-1540_GOOD
authorDirk Zimmermann <dz@pep.security>
Tue, 11 Jun 2019 16:28:31 +0200
branchIOS-1540_GOOD
changeset 8989012a2c1b6a98
parent 8988 f02c3def088c
child 8990 a4ee3ef5ba1e
IOS-1540 Back out c41e768ecd88: Forcing the use of os_log for WARN.
pEpForiOS/UI/Compose/ViewModel/ComposeViewModel.swift
pEpForiOS/UI/EmailDisplay/Background/AttachmentToLocalURLOperation.swift
pEpForiOS/Util/UserNotificationTool.swift
     1.1 --- a/pEpForiOS/UI/Compose/ViewModel/ComposeViewModel.swift	Tue Jun 11 16:28:31 2019 +0200
     1.2 +++ b/pEpForiOS/UI/Compose/ViewModel/ComposeViewModel.swift	Tue Jun 11 16:28:31 2019 +0200
     1.3 @@ -7,7 +7,6 @@
     1.4  //
     1.5  
     1.6  import MessageModel
     1.7 -
     1.8  import pEpIOSToolbox
     1.9  import PEPObjCAdapterFramework
    1.10  
    1.11 @@ -134,7 +133,7 @@
    1.12  
    1.13      public func handleUserClickedSendButton() {
    1.14          guard let msg = ComposeUtil.messageToSend(withDataFrom: state) else {
    1.15 -            os_log(type: .default, "No message for sending")
    1.16 +            Log.shared.warn("No message for sending")
    1.17              return
    1.18          }
    1.19          msg.save()
     2.1 --- a/pEpForiOS/UI/EmailDisplay/Background/AttachmentToLocalURLOperation.swift	Tue Jun 11 16:28:31 2019 +0200
     2.2 +++ b/pEpForiOS/UI/EmailDisplay/Background/AttachmentToLocalURLOperation.swift	Tue Jun 11 16:28:31 2019 +0200
     2.3 @@ -36,7 +36,7 @@
     2.4                  return
     2.5              }
     2.6              guard let data =  me.safeAttachment?.data else {
     2.7 -                os_log(type: .default, "Attachment without data")
     2.8 +                Log.shared.warn("Attachment without data")
     2.9                  return
    2.10              }
    2.11              let tmpDirURL =  FileManager.default.temporaryDirectory
     3.1 --- a/pEpForiOS/Util/UserNotificationTool.swift	Tue Jun 11 16:28:31 2019 +0200
     3.2 +++ b/pEpForiOS/Util/UserNotificationTool.swift	Tue Jun 11 16:28:31 2019 +0200
     3.3 @@ -64,7 +64,7 @@
     3.4                                                  content: content, trigger: trigger)
     3.5              center.add(request) { (error) in
     3.6                  if let error = error {
     3.7 -                    os_log(type: .default, 
     3.8 +                    Log.shared.warn(
     3.9                          "Error posting user notification: %{public}@",
    3.10                          error.localizedDescription)
    3.11                  }