Mercurial > piecrust2
changeset 903:812ca80863d4
bake: Keep track of which pages were aborted for using other pages.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 23 Jul 2017 08:24:11 -0700 |
parents | f71d576835ee |
children | cc2647360036 |
files | piecrust/pipelines/page.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/piecrust/pipelines/page.py Sun Jul 23 08:22:43 2017 -0700 +++ b/piecrust/pipelines/page.py Sun Jul 23 08:24:11 2017 -0700 @@ -20,6 +20,7 @@ def initialize(self): stats = self.app.env.stats stats.registerCounter('SourceUseAbortions', raise_if_registered=False) + stats.registerManifest('SourceUseAbortions', raise_if_registered=False) self._pagebaker = PageBaker(self.app, self.ctx.out_dir, @@ -131,6 +132,8 @@ logger.debug("Page was aborted for using source: %s" % content_item.spec) self.app.env.stats.stepCounter("SourceUseAbortions") + self.app.env.stats.addManifestEntry("SourceUseAbortions", + content_item.spec) result.next_step_job = self.createJob(content_item) finally: self.app.env.abort_source_use = False