mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-08-08 04:20:07 +02:00
👌 Fix print statements
This commit is contained in:
@ -156,7 +156,7 @@ class PhpEnv {
|
|||||||
*/
|
*/
|
||||||
public func validate(_ version: String) -> Bool {
|
public func validate(_ version: String) -> Bool {
|
||||||
if self.currentInstall.version.short == version {
|
if self.currentInstall.version.short == version {
|
||||||
print("Switching to version \(version) seems to have succeeded. Validation passed.")
|
Log.info("Switching to version \(version) seems to have succeeded. Validation passed.")
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -163,7 +163,7 @@ class Valet {
|
|||||||
|
|
||||||
// We should also check that we can interpret the path correctly
|
// We should also check that we can interpret the path correctly
|
||||||
if URL(fileURLWithPath: siteDir).lastPathComponent == "" {
|
if URL(fileURLWithPath: siteDir).lastPathComponent == "" {
|
||||||
print("Warning: could not parse the site: \(siteDir), skipping!")
|
Log.warn("Could not parse the site: \(siteDir), skipping!")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -32,7 +32,6 @@ class SelectPreferenceView: NSView, XibLoadable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
self.popupButton.itemArray.enumerated().forEach { item in
|
self.popupButton.itemArray.enumerated().forEach { item in
|
||||||
print("\(imagePrefix!)_\(self.options[item.offset])")
|
|
||||||
item.element.image = NSImage(named: "\(imagePrefix!)_\(self.options[item.offset])")
|
item.element.image = NSImage(named: "\(imagePrefix!)_\(self.options[item.offset])")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -102,7 +102,7 @@ class SiteListCell: NSTableCellView
|
|||||||
if response.rawValue > NSApplication.ModalResponse.alertFirstButtonReturn.rawValue {
|
if response.rawValue > NSApplication.ModalResponse.alertFirstButtonReturn.rawValue {
|
||||||
if map.keys.contains(response.rawValue) {
|
if map.keys.contains(response.rawValue) {
|
||||||
let version = map[response.rawValue]!
|
let version = map[response.rawValue]!
|
||||||
print("Pressed button to switch to \(version)")
|
Log.info("Pressed button to switch to \(version)")
|
||||||
MainMenu.shared.switchToPhpVersion(version)
|
MainMenu.shared.switchToPhpVersion(version)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user