Skip to content

Commit

Permalink
fix: make log level debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Oct 21, 2024
1 parent 1c6ba5f commit 14aa208
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 14aa208

Please sign in to comment.