diff --git a/ner_v2/api.py b/ner_v2/api.py index b52e40e4..3a2d6bbc 100644 --- a/ner_v2/api.py +++ b/ner_v2/api.py @@ -799,7 +799,7 @@ def text(request): try: validate_text_request(request) - ner_logger.debug("Valid text request") + ner_logger.info("Valid text request") # if verify success get detection data data = get_text_entity_detection_data(request) except InvalidTextRequest as err: diff --git a/ner_v2/detectors/textual/elastic_search.py b/ner_v2/detectors/textual/elastic_search.py index e7b2ed7b..3bb3950b 100644 --- a/ner_v2/detectors/textual/elastic_search.py +++ b/ner_v2/detectors/textual/elastic_search.py @@ -129,6 +129,7 @@ def get_multi_entity_results(self, entities, texts, fuzziness_threshold=1, ('TMOS', 'TMOS'), ('G.', 'G Pulla Reddy Sweets')])} ] """ + ner_logger.info(f'[get_multi_entity_results] entities {entities}') # entities for which es results need to be logged for debugging purposes log_results_for_entities = ['nsdc_language_select', 'nsdc_choose_topik', @@ -158,6 +159,7 @@ def get_multi_entity_results(self, entities, texts, fuzziness_threshold=1, try: response = self._run_es_search(self._default_connection, **kwargs) results = _parse_multi_entity_es_results(response.get("responses")) + ner_logger.info(f'[ES Result for Entities] log_es_result: {log_es_result}') if log_es_result: ner_logger.info(f'[ES Result for Entities] result: {results}') ner_logger.info(f'[ES Result for Entities] kwargs: {kwargs}') diff --git a/ner_v2/detectors/textual/utils.py b/ner_v2/detectors/textual/utils.py index 97b5d620..d2ef62e2 100644 --- a/ner_v2/detectors/textual/utils.py +++ b/ner_v2/detectors/textual/utils.py @@ -166,7 +166,7 @@ def get_text_entity_detection_data(request): entities = request_data.get("entities", {}) target_language_script = request_data.get('language_script') or ENGLISH_LANG source_language = request_data.get('source_language') or ENGLISH_LANG - ner_logger.debug(f"Request entity data {entities}") + ner_logger.info(f"Request entity data {entities}") data = []