From 15343d7af3d60809eccc86973f37af6be78a588a Mon Sep 17 00:00:00 2001 From: GRiker Date: Wed, 30 Nov 2011 04:30:06 -0700 Subject: [PATCH 1/2] Added diagnostics reporting connected_device in open() --- src/calibre/devices/apple/driver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/devices/apple/driver.py b/src/calibre/devices/apple/driver.py index d8584600ae..592208fc99 100644 --- a/src/calibre/devices/apple/driver.py +++ b/src/calibre/devices/apple/driver.py @@ -824,7 +824,7 @@ class ITUNES(DriverBase): ''' if DEBUG: - self.log.info("ITUNES.open()") + self.log.info("ITUNES.open(connected_device: %s)" % repr(connected_device)) # Display a dialog recommending using 'Connect to iTunes' if user hasn't # previously disabled the dialog @@ -3239,7 +3239,7 @@ class ITUNES_ASYNC(ITUNES): we need to talk to iTunes to discover if there's a connected iPod ''' if DEBUG: - self.log.info("ITUNES_ASYNC.open()") + self.log.info("ITUNES_ASYNC.open(connected_device: iTunes)") # Confirm/create thumbs archive if not os.path.exists(self.cache_dir): From ace9429430c257915da7c1c27c156feb0bedc70a Mon Sep 17 00:00:00 2001 From: GRiker Date: Wed, 30 Nov 2011 04:39:56 -0700 Subject: [PATCH 2/2] Revised diagnostics reporting connected_device in open() --- src/calibre/devices/apple/driver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/devices/apple/driver.py b/src/calibre/devices/apple/driver.py index 592208fc99..5ed4ef214e 100644 --- a/src/calibre/devices/apple/driver.py +++ b/src/calibre/devices/apple/driver.py @@ -3239,7 +3239,7 @@ class ITUNES_ASYNC(ITUNES): we need to talk to iTunes to discover if there's a connected iPod ''' if DEBUG: - self.log.info("ITUNES_ASYNC.open(connected_device: iTunes)") + self.log.info("ITUNES_ASYNC.open(connected_device: %s)" % repr(connected_device)) # Confirm/create thumbs archive if not os.path.exists(self.cache_dir):