Diagnostic tweaks

This commit is contained in:
Gregory Riker 2014-03-26 11:49:49 -07:00
parent 8a9077eb6a
commit 62097a2445

View File

@ -219,7 +219,7 @@ class libiMobileDevice():
self.device_connected = True self.device_connected = True
except libiMobileDeviceException as e: except libiMobileDeviceException as e:
self._log(e.value) self._log_error(e.value)
self.disconnect_idevice() self.disconnect_idevice()
return self.device_connected return self.device_connected
@ -501,7 +501,7 @@ class libiMobileDevice():
self.device_mounted = True self.device_mounted = True
except libiMobileDeviceException as e: except libiMobileDeviceException as e:
self._log(e.value) self._log_error(e.value)
self.disconnect_idevice() self.disconnect_idevice()
elif app_id: elif app_id:
@ -518,7 +518,7 @@ class libiMobileDevice():
self.device_mounted = True self.device_mounted = True
except libiMobileDeviceException as e: except libiMobileDeviceException as e:
self._log(e.value) self._log_error("{0}: {1}".format(app_id, e.value))
self.disconnect_idevice() self.disconnect_idevice()
if self.device_mounted: if self.device_mounted: