diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2021-09-18 10:46:52 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2021-09-18 10:46:52 +0100 |
commit | 0cdaf934e9ba09be62d0161e349b8783539beab5 (patch) | |
tree | 0f29d523d24d1d4102a6d237432e38aa0f135028 | |
parent | d47a844e13f48ae82a79f2d3434098cdabe83e12 (diff) | |
download | subplot-0cdaf934e9ba09be62d0161e349b8783539beab5.tar.gz |
trace: Add scenario count trace
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
-rw-r--r-- | src/doc.rs | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -406,8 +406,14 @@ impl<'a> Document { } /// Return matched scenarios in a document. + #[instrument(skip(self))] pub fn matched_scenarios(&mut self, template: &str) -> Result<Vec<MatchedScenario>> { let scenarios = self.scenarios()?; + event!( + Level::TRACE, + "Found {} scenarios, checking their bindings", + scenarios.len() + ); let bindings = self.meta().bindings(); scenarios .iter() |