From b2fc111a9a03d2b769a6fe0ef6a8870b7e2b330c Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Tue, 29 Jan 2013 23:33:25 +0100 Subject: [PATCH] debug more --- morituri/common/program.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/morituri/common/program.py b/morituri/common/program.py index 38b443c..fc985bd 100644 --- a/morituri/common/program.py +++ b/morituri/common/program.py @@ -112,14 +112,20 @@ class Program(log.Loggable): ptable = pcache.get(cddbdiscid) if not ptable.object: + self.debug('getTable: cddbdiscid %s not in cache, reading table' % + cddbdiscid) t = cdrdao.ReadTableTask(device=device) runner.run(t) ptable.persist(t.table) + else: + self.debug('getTable: cddbdiscid %s in cache' % cddbdiscid) itable = ptable.object assert itable.hasTOC() self.result.table = itable + self.debug('getTable: returning table with mb id %s' % + itable.getMusicBrainzDiscId()) return itable # FIXME: the cache should be model/offset specific