Cleaned up diagnostics printing when not in DEBUG mode.

This commit is contained in:
GRiker 2011-06-24 06:26:46 -06:00
parent 142005728b
commit b0766bd2cb

View File

@ -1211,6 +1211,7 @@ class ITUNES(DriverBase):
'''
windows assumes pythoncom wrapper
'''
if DEBUG:
self.log.info(" ITUNES._add_library_book()")
if isosx:
added = self.iTunes.add(appscript.mactypes.File(file))
@ -1335,6 +1336,7 @@ class ITUNES(DriverBase):
assumes pythoncom wrapper for db_added
as of iTunes 9.2, iBooks 1.1, can't set artwork for PDF files via automation
'''
if DEBUG:
self.log.info(" ITUNES._cover_to_thumb()")
thumb = None
@ -2489,6 +2491,7 @@ class ITUNES(DriverBase):
'''
Windows assumes pythoncom wrapper
'''
if DEBUG:
self.log.info(" ITUNES._remove_from_device()")
if isosx:
if DEBUG:
@ -2616,6 +2619,7 @@ class ITUNES(DriverBase):
def _update_epub_metadata(self, fpath, metadata):
'''
'''
if DEBUG:
self.log.info(" ITUNES._update_epub_metadata()")
# Fetch plugboard updates
@ -2983,6 +2987,7 @@ class ITUNES(DriverBase):
self.log.info(" tags: %s %s" % (book.tags, ">>> %s" %
newmi.tags if book.tags != newmi.tags else ''))
else:
if DEBUG:
self.log(" matching plugboard not found")
else: