summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2021-09-18 10:46:52 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2021-09-18 10:46:52 +0100
commit0cdaf934e9ba09be62d0161e349b8783539beab5 (patch)
tree0f29d523d24d1d4102a6d237432e38aa0f135028
parentd47a844e13f48ae82a79f2d3434098cdabe83e12 (diff)
downloadsubplot-0cdaf934e9ba09be62d0161e349b8783539beab5.tar.gz
trace: Add scenario count trace
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
-rw-r--r--src/doc.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/doc.rs b/src/doc.rs
index 10ac20f..2272581 100644
--- a/src/doc.rs
+++ b/src/doc.rs
@@ -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()