Skip to content

Commit

Permalink
[validate] more debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
bal-e committed Oct 24, 2024
1 parent a25be56 commit 59650a4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/validate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ impl<Octs: AsRef<[u8]>> Key<Octs> {
// Parse the entire record.
let mut scanner = IterScanner::new(line.split_ascii_whitespace());

eprintln!("DEBUG: line = '{}'", line);

let name = scanner.scan_name().map_err(|_| {
eprintln!("DEBUG: owner name failed");
ParseDnskeyTextError::Misformatted
Expand All @@ -303,8 +305,8 @@ impl<Octs: AsRef<[u8]>> Key<Octs> {
return Err(ParseDnskeyTextError::Misformatted);
}

let data = Dnskey::scan(&mut scanner).map_err(|_| {
eprintln!("DEBUG: record data parsing failed");
let data = Dnskey::scan(&mut scanner).map_err(|err| {
eprintln!("DEBUG: record data parsing failed {err}");
ParseDnskeyTextError::Misformatted
})?;

Expand Down

0 comments on commit 59650a4

Please sign in to comment.