Skip to content

Commit

Permalink
refactor: add new log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
BrewingWeasel committed Jul 21, 2024
1 parent bcdc764 commit d56f575
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src-tauri/src/language_parsing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ pub async fn parse_url(
.text()
.await
.expect("to get valid bytes");
info!("Got response");

let sections = Arc::new(Mutex::new((HashSet::new(), Vec::new(), String::new())));
let state = Arc::new(state);
Expand Down Expand Up @@ -207,6 +208,7 @@ pub async fn parse_url(
},
)
.unwrap();
log::info!("Created sections");

let owned_sections = Arc::into_inner(sections).unwrap();
let owned_details = owned_sections.into_inner();
Expand All @@ -219,7 +221,7 @@ pub async fn parse_url(
let mut current_length = 0;
let mut words = Vec::new();
while let Some(word) = all_words.peek() {
println!("{:?}", word);
log::trace!("word: {:?}", word);
current_length += word.length + 1;
if current_length >= length {
break;
Expand Down

0 comments on commit d56f575

Please sign in to comment.