IOS-1540 Better os_log usage. IOS-1540_GOOD
authorDirk Zimmermann <dz@pep.security>
Wed, 05 Jun 2019 16:12:20 +0200
branchIOS-1540_GOOD
changeset 8914e84cf744cb48
parent 8909 bcf97dbd8655
child 8915 693b09c69acc
IOS-1540 Better os_log usage.
Submodules/pEpIOSToolbox/pEpIOSToolbox/Other/Logger.swift
     1.1 --- a/Submodules/pEpIOSToolbox/pEpIOSToolbox/Other/Logger.swift	Tue Jun 04 15:24:59 2019 +0200
     1.2 +++ b/Submodules/pEpIOSToolbox/pEpIOSToolbox/Other/Logger.swift	Wed Jun 05 16:12:20 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