Skip to content

Commit

Permalink
Log document_id_hash for missing docs in DS (#7991)
Browse files Browse the repository at this point in the history
  • Loading branch information
flvndvd authored Oct 10, 2024
1 parent c33037e commit 4aead1a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/src/data_sources/data_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1165,15 +1165,15 @@ impl DataSource {
let project = self.project.clone();
let data_source = data_source.clone();

let document_id_hash = make_document_id_hash(&document_id);

tokio::spawn(async move {
match store
.load_data_source_document(&project, &data_source_id, &document_id, &None)
.await?
{
Some(mut d) => {
if full_text {
let document_id_hash = make_document_id_hash(&document_id);

let stored_doc = FileStorageDocument::get_stored_document(
&data_source,
d.created,
Expand All @@ -1194,6 +1194,7 @@ impl DataSource {
error!(
data_source_id = %data_source_id,
document_id = %document_id,
document_id_hash = %document_id_hash,
panic = true,
"Document not found in store"
);
Expand Down

0 comments on commit 4aead1a

Please sign in to comment.