feat: removed os.log and moved to NextLog

This commit is contained in:
Serhiy Mytrovtsiy
2021-06-26 13:38:45 +02:00
parent 4f7a7bab25
commit a3a002a2d3
20 changed files with 88 additions and 113 deletions

View File

@@ -11,7 +11,6 @@
import Cocoa
import Kit
import os.log
class ApplicationSettings: NSScrollView {
private var updateIntervalValue: String {
@@ -253,12 +252,12 @@ class ApplicationSettings: NSScrollView {
@objc func updateAction(_ sender: NSObject) {
updater.check { result, error in
if error != nil {
os_log(.error, log: log, "error updater.check(): %s", "\(error!.localizedDescription)")
debug("error updater.check(): \(error!.localizedDescription)")
return
}
guard error == nil, let version: version_s = result else {
os_log(.error, log: log, "download error(): %s", "\(error!.localizedDescription)")
debug("download error(): \(error!.localizedDescription)")
return
}

View File

@@ -11,7 +11,6 @@
import Cocoa
import Kit
import os.log
class Dashboard: NSScrollView {
private var uptimeField: NSTextField? = nil

View File

@@ -11,7 +11,6 @@
import Cocoa
import Kit
import os.log
class UpdateWindow: NSWindow, NSWindowDelegate {
private let viewController: UpdateViewController = UpdateViewController()