Add tracing.
Some checks failed
rust-test Build rust-test has failed

This commit is contained in:
Tom Alexander 2023-07-14 18:05:31 -04:00
parent b9a7c3f7f3
commit e4c6ca2880
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 3 additions and 1 deletions

View File

@ -38,6 +38,7 @@ fn plain_text_end<'r, 's>(context: Context<'r, 's>, input: &'s str) -> Res<&'s s
}
impl<'x> RematchObject<'x> for PlainText<'x> {
#[tracing::instrument(ret, level = "debug")]
fn rematch_object<'r, 's>(
&'x self,
_context: Context<'r, 's>,

View File

@ -245,6 +245,7 @@ fn _text_markup_end<'r, 's, 'x>(
}
impl<'x> RematchObject<'x> for Bold<'x> {
#[tracing::instrument(ret, level = "debug")]
fn rematch_object<'r, 's>(
&'x self,
_context: Context<'r, 's>,
@ -257,7 +258,7 @@ impl<'x> RematchObject<'x> for Bold<'x> {
}
}
// #[tracing::instrument(ret, level = "debug")]
#[tracing::instrument(ret, level = "debug")]
fn _rematch_text_markup_object<'r, 's, 'x>(
context: Context<'r, 's>,
input: &'s str,