mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-23 06:46:03 +00:00
Replace prints with logs
This commit is contained in:
1 parent
7acdd00525
commit
fc8d5ba268
1 file changed
+3
-3
@@ -400,13 +400,13 @@ class ShareViewController: NSViewController, ShareExtensionDelegate {
|
|||||||
let configuration = NSWorkspace.OpenConfiguration()
|
let configuration = NSWorkspace.OpenConfiguration()
|
||||||
NSWorkspace.shared.openApplication(at: url, configuration: configuration) { app, error in
|
NSWorkspace.shared.openApplication(at: url, configuration: configuration) { app, error in
|
||||||
if let error = error {
|
if let error = error {
|
||||||
print("Failed to launch application: \(error)")
|
log("Failed to launch application: \(error)")
|
||||||
} else {
|
} else {
|
||||||
print("Application launched successfully")
|
log("Application launched successfully")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
print("Could not find application with bundle identifier \(bundleIdentifier)")
|
log("Could not find application with bundle identifier \(bundleIdentifier)")
|
||||||
}
|
}
|
||||||
|
|
||||||
DispatchQueue.main.asyncAfter(deadline: .now() + 1.0) {
|
DispatchQueue.main.asyncAfter(deadline: .now() + 1.0) {
|
||||||
|
|||||||
Reference in new issue
Block a user