mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Adopt OSLog for logging and replace the majority of calls to print()
This commit is contained in:
parent
79e23d561e
commit
4c7cd0d923
65 changed files with 418 additions and 401 deletions
|
|
@ -47,7 +47,6 @@ extension UIColor {
|
|||
let red = CGFloat((hex & 0xFF0000) >> 16)
|
||||
let green = CGFloat((hex & 0x00FF00) >> 8)
|
||||
let blue = CGFloat((hex & 0x0000FF))
|
||||
/// print("\(red) - \(green) - \(blue)")
|
||||
self.init(red: red/255.0, green: green/255.0, blue: blue/255.0, alpha: 1.0)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,11 +52,13 @@ public extension FileManager {
|
|||
do {
|
||||
accumulatedSize += try contentItemURL.regularFileAllocatedSize()
|
||||
} catch {
|
||||
print("💥 File Manager Error: \(error.localizedDescription)")
|
||||
logger.error("💥 File Manager Error: \(error.localizedDescription)")
|
||||
}
|
||||
|
||||
}
|
||||
if let error = enumeratorError { print("💥 AllocatedSizeOfDirectory enumeratorError = \(error.localizedDescription)") }
|
||||
if let error = enumeratorError {
|
||||
logger.error("💥 AllocatedSizeOfDirectory enumeratorError = \(error.localizedDescription)")
|
||||
}
|
||||
|
||||
return Double(accumulatedSize).toBytes
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue