Skip to content

Commit

Permalink
Merge pull request #39 from beclab/feat/bertv3-embedding
Browse files Browse the repository at this point in the history
fix: make log level debug
  • Loading branch information
bleachzou3 authored Oct 21, 2024
2 parents 5b6b901 + 14aa208 commit a50f233
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion user-embedding/src/bertcommon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ async fn calculate_userembedding() -> AnyhowResult<Tensor, AnyhowError> {
calculate_single_entry_pure(current_entry_id, &model, current_tokenizer).await;
if let Some(current_tensor) = current_tensor_option {
cumulative_tensor = cumulative_tensor.add(&current_tensor)?;
tracing::debug!("add current_entry {}", current_entry_id);
tracing::info!("add current_entry {}", current_entry_id);
} else {
tracing::error!("current_entry_id {} calculate fail", current_entry_id);
}
Expand Down
1 change: 1 addition & 0 deletions user-embedding/src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ pub fn init_tracing() {
tracing_subscriber::fmt()
.with_line_number(true)
.with_file(true)
.with_max_level(tracing::Level::DEBUG)
.init();
tracing::error!("tracing initialized.");
}
Expand Down

0 comments on commit a50f233

Please sign in to comment.