update logging; bump classVersion of Table

now table will get a logName set correctly when unpickled too
This commit is contained in:
Thomas Vander Stichele
2013-03-05 16:59:38 +01:00
parent ee99d833a7
commit 307db4f59f
3 changed files with 12 additions and 4 deletions

View File

@@ -150,8 +150,12 @@ class Program(log.Loggable):
t = cdrdao.ReadTableTask(device=device)
runner.run(t)
ptable.persist(t.table)
self.debug('getTable: read table %r' % t.table)
else:
self.debug('getTable: cddbdiscid %s in cache' % cddbdiscid)
self.debug('getTable: cddbdiscid %s, mbdiscid %s in cache' % (
cddbdiscid, mbdiscid))
ptable.object.unpickled()
self.debug('getTable: loaded table %r' % ptable.object)
itable = ptable.object
assert itable.hasTOC()