diff --git a/dags/business/business/community/traffic.py b/dags/business/business/community/traffic.py index 576ca11..2eb379b 100644 --- a/dags/business/business/community/traffic.py +++ b/dags/business/business/community/traffic.py @@ -62,15 +62,15 @@ def deal(actions, item): try: helpers.bulk(es206_client.elastic_client, actions) count += len(actions) - print("更新:" + str(count)) + log.info("更新:" + str(count)) except Exception as e: - print(e) + log.error(e) actions.clear() mutex.release() def sync(city=None): - log.info(f"开始同步周边配套至206 {index_name}") + log.info(f"开始同步交通至206 {index_name}") seaweed_query = {'status': 0, 'cat': 'district'} if pd.notna(city): seaweed_query['city'] = city @@ -93,4 +93,4 @@ def sync(city=None): print(e) actions.clear() - log.info(f"完成同步周边配套至206 {index_name}") \ No newline at end of file + log.info(f"完成同步交通至206 {index_name}") \ No newline at end of file