Skip to content

Commit

Permalink
chore(oca-file): improve debuging outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
mitfik committed Nov 7, 2023
1 parent 511be9d commit 2cfdaee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions oca-file/src/ocafile/instructions/add.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@ impl AddInstruction {
for attr_pairs in object.into_inner() {
match attr_pairs.as_rule() {
Rule::attr_pairs => {
info!("attribute: {:?}", attr_pairs);
debug!("Attribute pairs: {:?}", attr_pairs);
for attr in attr_pairs.into_inner() {
debug!("Parsing attribute {:?}", attr);
debug!("Parsing attribute pair {:?}", attr);
if let Some((key, value)) =
helpers::extract_attribute_key_pairs(attr)
{
debug!("Parsed attribute: {:?} = {:?}", key, value);
info!("Parsed attribute: {:?} = {:?}", key, value);

// TODO find out how to parse nested objects
attributes.insert(key, value);
} else {
debug!("Skipping attribute");
debug!("Attribute skipped");
}
}
}
Expand Down

0 comments on commit 2cfdaee

Please sign in to comment.