diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2022-05-12 14:07:53 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2022-05-12 18:02:03 +0200 |
commit | 1cfdbd6ae0c1c740ca75490827410ff0fd3c4ff7 (patch) | |
tree | ceec7f59e8c788b5ef402f78031568b79ddb7ac8 /openpgp/src/cert | |
parent | 692f26a354e27339598e25ae21ac6545e4aa4b65 (diff) |
openpgp: Improve tracing.
Diffstat (limited to 'openpgp/src/cert')
-rw-r--r-- | openpgp/src/cert/parser/low_level/lexer.rs | 1 | ||||
-rw-r--r-- | openpgp/src/cert/parser/mod.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/openpgp/src/cert/parser/low_level/lexer.rs b/openpgp/src/cert/parser/low_level/lexer.rs index 6279ab2f..29639271 100644 --- a/openpgp/src/cert/parser/low_level/lexer.rs +++ b/openpgp/src/cert/parser/low_level/lexer.rs @@ -54,6 +54,7 @@ assert_send_and_sync!(Token); /// public. But, since this module is not public, it will not /// actually be exported to users of the library. #[allow(clippy::enum_variant_names)] +#[derive(Debug)] pub enum Component { SubkeyBundle(SubkeyBundle<key::PublicParts>), UserIDBundle(UserIDBundle), diff --git a/openpgp/src/cert/parser/mod.rs b/openpgp/src/cert/parser/mod.rs index 0b48736b..e031ec48 100644 --- a/openpgp/src/cert/parser/mod.rs +++ b/openpgp/src/cert/parser/mod.rs @@ -798,6 +798,7 @@ impl<'a> CertParser<'a> { .into_iter() .filter_map(|p| p.into()) .collect::<Vec<Token>>(); + t!("{} tokens: {:?}", tokens.len(), tokens); if tokens.len() != packets { // There was at least one packet that doesn't belong in a // Cert. Fail now. |