Increase logging

This commit is contained in:
croneter 2018-02-28 13:45:53 +01:00
parent f0bbcb5086
commit f6336feb72

View file

@ -255,6 +255,7 @@ class KodiDBMethods(object):
except TypeError: except TypeError:
self.cursor.execute(query_id) self.cursor.execute(query_id)
entry_id = self.cursor.fetchone()[0] + 1 entry_id = self.cursor.fetchone()[0] + 1
LOG.debug('Adding %s: %s with id %s', table, entry, entry_id)
self.cursor.execute(query_new, (entry_id, entry)) self.cursor.execute(query_new, (entry_id, entry))
finally: finally:
entry_ids.append(entry_id) entry_ids.append(entry_id)
@ -286,6 +287,7 @@ class KodiDBMethods(object):
self.cursor.execute(query_rem, (entry_id,)) self.cursor.execute(query_rem, (entry_id,))
if self.cursor.fetchone() is None: if self.cursor.fetchone() is None:
# Delete in the original table because entry is now orphaned # Delete in the original table because entry is now orphaned
LOG.debug('Deleting %s from Kodi DB: %s', table, entry_id)
self.cursor.execute(query_delete, (entry_id,)) self.cursor.execute(query_delete, (entry_id,))
def modify_countries(self, kodi_id, kodi_type, countries): def modify_countries(self, kodi_id, kodi_type, countries):