Skip to content

Commit

Permalink
tracing result
Browse files Browse the repository at this point in the history
  • Loading branch information
m4salah committed Dec 11, 2023
1 parent eb51e8e commit a69e638
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/handlers/day6.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ async fn elf_on_shelf(elf_text: String) -> Result<Json<ElfOnShelfResult>, Status
.captures_iter(elf_text.as_str())
.count() as u64;

tracing::info!(
"elf_text result: {:?}",
ElfOnShelfResult {
elf,
elf_on_a_shelf,
shelf_with_no_elf_on_it: shelf - elf_on_a_shelf,
}
);
Ok(Json(ElfOnShelfResult {
elf,
elf_on_a_shelf,
Expand Down

0 comments on commit a69e638

Please sign in to comment.