1
0
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:
2022-02-08 23:37:17 +01:00
parent e4f9d491c3
commit bb6abc5e9a
4 changed files with 3 additions and 4 deletions

View File

@ -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
} }

View File

@ -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
} }

View File

@ -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])")
} }
} }

View File

@ -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)
} }
} }