Logging: Tag the entries in the merged log

So we know which entry is from the app and which is from the network
extension.

Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
Roopesh Chander committed 2018-12-13 18:00:32 +05:30
1 parent ba1d0c05be
commit e199ed0d6c
4 files changed
+14 -7

No files matched your search

@@ -118,7 +118,7 @@ class SettingsTableViewController: UITableViewController {
return
}
let isWritten = Logger.writeLog(mergedWith: networkExtensionLogFilePath, to: destinationURL.path)
let isWritten = Logger.writeLog(mergedWith: networkExtensionLogFilePath, tag: "APP", otherTag: "EXT", to: destinationURL.path)
guard isWritten else {
ErrorPresenter.showErrorAlert(title: "Log export failed", message: "Internal error merging logs", from: self)
return