IOS-1540 Back out 693b09c69acc: Back out: Better os_log usage. IOS-1540_GOOD
authorDirk Zimmermann <dz@pep.security>
Tue, 11 Jun 2019 16:28:31 +0200
branchIOS-1540_GOOD
changeset 90095a18c5977014
parent 9008 eedfcc5d3fab
child 9010 89e7a226363b
IOS-1540 Back out 693b09c69acc: Back out: 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,7 +166,8 @@
     1.4                                fileLine: Int = #line,
     1.5                                _ message: StaticString) {
     1.6          let msgString = "\(message)"
     1.7 -        os_log("%{public}@ %{public}@ (%{public}@):%d", msgString, function, filePath, fileLine)
     1.8 +        os_log("%{public}@ %{public}@ (%{public}@):%d",
     1.9 +               type: .error, msgString, function, filePath, fileLine)
    1.10          SystemUtils.crash(msgString)
    1.11      }
    1.12  
    1.13 @@ -175,7 +176,8 @@
    1.14                                fileLine: Int = #line,
    1.15                                _ error: Error) {
    1.16          let msgString = "\(error)"
    1.17 -        os_log("%{public}@ %{public}@ (%{public}@):%d", msgString, function, filePath, fileLine)
    1.18 +        os_log("%{public}@ %{public}@ (%{public}@):%d",
    1.19 +               type: .error, msgString, function, filePath, fileLine)
    1.20          SystemUtils.crash(msgString)
    1.21      }
    1.22