From a4bb278c0c8bc158f4d6737d30ae79c848782f78 Mon Sep 17 00:00:00 2001 From: TuziBen Date: Wed, 22 Nov 2023 22:50:36 +0800 Subject: [PATCH] Add the index ID and source ID in the warn logs --- quickwit/quickwit-indexing/src/actors/doc_processor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickwit/quickwit-indexing/src/actors/doc_processor.rs b/quickwit/quickwit-indexing/src/actors/doc_processor.rs index 1b185e4202e..269123ee3f0 100644 --- a/quickwit/quickwit-indexing/src/actors/doc_processor.rs +++ b/quickwit/quickwit-indexing/src/actors/doc_processor.rs @@ -400,7 +400,7 @@ impl DocProcessor { .doc_mapper .doc_from_json_obj(json_doc.json_obj) .map_err(|error| { - warn!(error=?error); + warn!(index_id=self.counters.index_id, source_id=self.counters.source_id, error=?error); match error { DocParsingError::RequiredField(_) => DocProcessorError::Schema, _ => DocProcessorError::Parse,