From 19ccfdfbd79c141683f0e1e823fc8f8930c99ce7 Mon Sep 17 00:00:00 2001 From: Thomas-Karl Pietrowski Date: Mon, 14 Mar 2016 17:04:51 +0100 Subject: [PATCH] RemovableDriveOutputDevice: Same for OSX See 0b0bc8080591a5cce098e9d47ff12224c924347d --- plugins/RemovableDriveOutputDevice/OSXRemovableDrivePlugin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/RemovableDriveOutputDevice/OSXRemovableDrivePlugin.py b/plugins/RemovableDriveOutputDevice/OSXRemovableDrivePlugin.py index e02e0d65b6..aafc129541 100644 --- a/plugins/RemovableDriveOutputDevice/OSXRemovableDrivePlugin.py +++ b/plugins/RemovableDriveOutputDevice/OSXRemovableDrivePlugin.py @@ -4,6 +4,8 @@ from . import RemovableDrivePlugin +from UM.Logger import Logger + import threading import subprocess @@ -46,6 +48,7 @@ class OSXRemovableDrivePlugin(RemovableDrivePlugin.RemovableDrivePlugin): def performEjectDevice(self, device): p = subprocess.Popen(["diskutil", "eject", path], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) output = p.communicate() + Logger.log("d", "umount returned: %s.", repr(output)) return_code = p.wait() if return_code != 0: