debug more
This commit is contained in:
@@ -112,14 +112,20 @@ class Program(log.Loggable):
|
|||||||
ptable = pcache.get(cddbdiscid)
|
ptable = pcache.get(cddbdiscid)
|
||||||
|
|
||||||
if not ptable.object:
|
if not ptable.object:
|
||||||
|
self.debug('getTable: cddbdiscid %s not in cache, reading table' %
|
||||||
|
cddbdiscid)
|
||||||
t = cdrdao.ReadTableTask(device=device)
|
t = cdrdao.ReadTableTask(device=device)
|
||||||
runner.run(t)
|
runner.run(t)
|
||||||
ptable.persist(t.table)
|
ptable.persist(t.table)
|
||||||
|
else:
|
||||||
|
self.debug('getTable: cddbdiscid %s in cache' % cddbdiscid)
|
||||||
itable = ptable.object
|
itable = ptable.object
|
||||||
assert itable.hasTOC()
|
assert itable.hasTOC()
|
||||||
|
|
||||||
self.result.table = itable
|
self.result.table = itable
|
||||||
|
|
||||||
|
self.debug('getTable: returning table with mb id %s' %
|
||||||
|
itable.getMusicBrainzDiscId())
|
||||||
return itable
|
return itable
|
||||||
|
|
||||||
# FIXME: the cache should be model/offset specific
|
# FIXME: the cache should be model/offset specific
|
||||||
|
|||||||
Reference in New Issue
Block a user