Skip to content

Commit

Permalink
Add log message when inserting words into database.
Browse files Browse the repository at this point in the history
  • Loading branch information
ISibboI committed Aug 5, 2023
1 parent e0316cc commit 415945b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/rvoc-backend/src/update_wiktionary/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ pub async fn run_update_wiktionary(configuration: &Configuration) -> RVocResult<

let mut tries = 0;
while word_buffer.len() >= configuration.wiktionary_dump_insertion_batch_size {
debug!("Inserting {} words into database", word_buffer.len());

tries += 1;
if tries > configuration.wiktionary_dump_insertion_maximum_retry_count {
return Err(Box::new(
Expand Down

0 comments on commit 415945b

Please sign in to comment.