Dropped NSFoundation's string to data conversion method in favor to Swift's one

This commit is contained in:
Wojciech Nagrodzki 2018-08-25 11:41:19 +02:00
parent c83f341d6d
commit ec98042420
Signed by: wnagrodzki
GPG key ID: E9D0EB0302264569

View file

@ -56,10 +56,7 @@ public final class DiskLogger: Logger {
} }
private func log(_ message: String) { private func log(_ message: String) {
guard let data = message.data(using: .utf8) else { let data = Data(message.utf8)
log("Message failed to convert to UTF8", level: .warning)
return
}
queue.async { queue.async {
self.buffer.append(data) self.buffer.append(data)