Skip to content

Commit

Permalink
chore: add concrete tag to log when write failed (#707)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiacai2050 authored Mar 8, 2023
1 parent 47a3f0b commit 11f10c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/src/grpc/storage_service/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ fn write_entry_to_rows(
ErrNoCause {
code: StatusCode::BAD_REQUEST,
msg: format!(
"tag index {name_index} is not found in tag_names:{tag_names:?}, table:{table_name}",
"tag {tag:?} is not found in tag_names:{tag_names:?}, table:{table_name}",
),
}
);
Expand Down
4 changes: 2 additions & 2 deletions sql/src/planner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,9 @@ fn build_schema_from_write_table_request(
let name_index = tag.name_index as usize;
ensure!(
name_index < tag_names.len(),
InvalidWriteEntry{
InvalidWriteEntry {
msg: format!(
"tag index {name_index} is not found in tag_names:{tag_names:?}, table:{table}",
"tag {tag:?} is not found in tag_names:{tag_names:?}, table:{table}",
),
}
);
Expand Down

0 comments on commit 11f10c2

Please sign in to comment.