mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-15 00:34:08 +09:00
feat: removed os.log and moved to NextLog
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
|
||||
import Cocoa
|
||||
import Kit
|
||||
import os.log
|
||||
|
||||
class Dashboard: NSScrollView {
|
||||
private var uptimeField: NSTextField? = nil
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
|
||||
import Cocoa
|
||||
import Kit
|
||||
import os.log
|
||||
|
||||
class UpdateWindow: NSWindow, NSWindowDelegate {
|
||||
private let viewController: UpdateViewController = UpdateViewController()
|
||||
|
||||
Reference in New Issue
Block a user