IOS-1540 Back out e84cf744cb48: Better os_log usage. IOS-1540_GOOD
authorDirk Zimmermann <dz@pep.security>
Tue, 11 Jun 2019 16:28:31 +0200
branchIOS-1540_GOOD
changeset 901089e7a226363b
parent 9009 5a18c5977014
child 9011 c4b7458e1f73
IOS-1540 Back out e84cf744cb48: Better os_log usage.
Submodules/pEpIOSToolbox/pEpIOSToolbox/Other/Logger.swift
     1.1 --- a/Submodules/pEpIOSToolbox/pEpIOSToolbox/Other/Logger.swift	Tue Jun 11 16:28:31 2019 +0200
     1.2 +++ b/Submodules/pEpIOSToolbox/pEpIOSToolbox/Other/Logger.swift	Tue Jun 11 16:28:31 2019 +0200
     1.3 @@ -166,8 +166,7 @@
     1.4                                fileLine: Int = #line,
     1.5                                _ message: StaticString) {
     1.6          let msgString = "\(message)"
     1.7 -        os_log("%{public}@ %{public}@ (%{public}@):%d",
     1.8 -               type: .error, msgString, function, filePath, fileLine)
     1.9 +        os_log("%{public}@ %{public}@ (%{public}@):%d", msgString, function, filePath, fileLine)
    1.10          SystemUtils.crash(msgString)
    1.11      }
    1.12  
    1.13 @@ -176,8 +175,7 @@
    1.14                                fileLine: Int = #line,
    1.15                                _ error: Error) {
    1.16          let msgString = "\(error)"
    1.17 -        os_log("%{public}@ %{public}@ (%{public}@):%d",
    1.18 -               type: .error, msgString, function, filePath, fileLine)
    1.19 +        os_log("%{public}@ %{public}@ (%{public}@):%d", msgString, function, filePath, fileLine)
    1.20          SystemUtils.crash(msgString)
    1.21      }
    1.22