Skip to content

Commit

Permalink
log prelaunch
Browse files Browse the repository at this point in the history
  • Loading branch information
samdeane committed Oct 22, 2020
1 parent b093052 commit 37c1cdb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/LoggerKit/LoggerApplication+AppKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ extension LoggerApplication: NSApplicationDelegate {
if debug == nil {
debug = NSMenuItem(title: "Debug", action: nil, keyEquivalent: "")
debug?.submenu = NSMenu(title: "Debug")
if let index = menubar?.indexOfItem(withTitle: "Help") {
menubar?.insertItem(debug!, at: index)
if let label = menubar?.indexOfItem(withTitle: "Help") {
menubar?.insertItem(debug!, at: label)
}
}

Expand Down
1 change: 1 addition & 0 deletions Sources/LoggerKit/LoggerApplication+UIKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import Logger
/// Use this for quick setup only - for example to force log channels on/off.
/// Proper setup should be deferred until later.
open func prelaunch() {
applicationChannel.debug("prelaunch")
}
}

Expand Down

0 comments on commit 37c1cdb

Please sign in to comment.