From 0b0bc8080591a5cce098e9d47ff12224c924347d Mon Sep 17 00:00:00 2001 From: Thomas-Karl Pietrowski Date: Mon, 14 Mar 2016 17:03:08 +0100 Subject: [PATCH] RemovableDriveOutputDevice: Making output of uname command useful --- .../RemovableDriveOutputDevice/LinuxRemovableDrivePlugin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/RemovableDriveOutputDevice/LinuxRemovableDrivePlugin.py b/plugins/RemovableDriveOutputDevice/LinuxRemovableDrivePlugin.py index ce948c472b..46e3dafb71 100644 --- a/plugins/RemovableDriveOutputDevice/LinuxRemovableDrivePlugin.py +++ b/plugins/RemovableDriveOutputDevice/LinuxRemovableDrivePlugin.py @@ -4,6 +4,8 @@ from . import RemovableDrivePlugin +from UM.Logger import Logger + import glob import os import subprocess @@ -33,6 +35,7 @@ class LinuxRemovableDrivePlugin(RemovableDrivePlugin.RemovableDrivePlugin): def performEjectDevice(self, device): p = subprocess.Popen(["umount", device.getId()], 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: