Skip to content

Commit

Permalink
revert debug
Browse files Browse the repository at this point in the history
  • Loading branch information
mfshao committed Jul 14, 2023
1 parent 0597ebd commit f269adc
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/mds/agg_mds/datastore/elasticsearch_dao.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import json
from elasticsearch import Elasticsearch, exceptions as es_exceptions, helpers
from typing import Any, List, Dict, Union, Optional, Tuple
from math import ceil
Expand Down Expand Up @@ -153,7 +152,6 @@ async def create_indexes(common_mapping: dict):
async def create_temp_indexes(common_mapping: dict):
try:
mapping = {**SEARCH_CONFIG, **common_mapping}
print(json.dumps(mapping, indent=4))
res = elastic_search_client.indices.create(
index=AGG_MDS_INDEX_TEMP, body=mapping
)
Expand Down Expand Up @@ -224,7 +222,6 @@ async def update_metadata(
index=index_to_update, doc_type=AGG_MDS_TYPE, id=key, body=doc
)
except Exception as ex:
print(json.dumps(doc, indent=4))
raise (ex)


Expand Down

0 comments on commit f269adc

Please sign in to comment.