Logging: Use ringlogger for logging from the app

Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
Roopesh Chander
2018-12-13 17:30:02 +05:30
parent 12503ae51d
commit ba1d0c05be
3 changed files with 23 additions and 22 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ extension FileManager {
do {
try FileManager.default.removeItem(at: url)
} catch let error {
os_log("Failed to delete file '%{public}@': %{public}@", log: OSLog.default, type: .debug, url.absoluteString, error.localizedDescription)
wg_log(.info, message: "Failed to delete file '\(url.path)': \(error)")
return false
}
return true