fix: add error_msg func to the Logger

fix: removed unused code from the AppDelegate
This commit is contained in:
Serhiy Mytrovtsiy
2021-07-20 17:30:30 +02:00
parent 6fda909cc8
commit 4197e2f76b
2 changed files with 4 additions and 3 deletions

View File

@@ -179,3 +179,7 @@ public func info(_ message: String, log: NextLog = NextLog.shared, file: String
public func error(_ message: String, log: NextLog = NextLog.shared, file: String = #file, line: UInt = #line) {
log.log(level: .error, message: message, file: file, line: line)
}
public func error_msg(_ message: String, log: NextLog = NextLog.shared, file: String = #file, line: UInt = #line) {
log.log(level: .error, message: message, file: file, line: line)
}

View File

@@ -45,9 +45,6 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele
self.parseArguments()
self.parseVersion()
NSUserNotificationCenter.default.removeAllDeliveredNotifications()
NotificationCenter.default.addObserver(self, selector: #selector(updateCron), name: .changeCronInterval, object: nil)
modules.forEach{ $0.mount() }
self.settingsWindow.setModules()