IOS-1540 All errorAndCrash now have symmetric output. IOS-1540_GOOD
authorDirk Zimmermann <dz@pep.security>
Tue, 11 Jun 2019 16:28:31 +0200
branchIOS-1540_GOOD
changeset 9029dccf4c72edb5
parent 9028 fd7e84e7e135
child 9030 b7240b9449de
IOS-1540 All errorAndCrash now have symmetric output.
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 @@ -196,12 +196,12 @@
     1.4                                fileLine: Int = #line,
     1.5                                _ message: StaticString,
     1.6                                _ args: CVarArg...) {
     1.7 -        saveLog(message: message,
     1.8 -                severity: .fault,
     1.9 -                function: function,
    1.10 -                filePath: filePath,
    1.11 -                fileLine: fileLine,
    1.12 -                args: args)
    1.13 +        osLog(message: "*** errorAndCrash: \(message)",
    1.14 +            severity: .fault,
    1.15 +            function: function,
    1.16 +            filePath: filePath,
    1.17 +            fileLine: fileLine,
    1.18 +            args: args)
    1.19  
    1.20          SystemUtils.crash("*** errorAndCrash: \(message) (\(filePath):\(fileLine) \(function))")
    1.21      }