From 91938aeaa7b8b368a5fbe55243ec30fd83738505 Mon Sep 17 00:00:00 2001 From: "shenjian@fangjia.com" Date: Fri, 21 Oct 2022 14:30:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=91=A8=E8=BE=B9=E9=85=8D?= =?UTF-8?q?=E5=A5=97=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/business/business/community/traffic.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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