From f533ff3ea796c468d02478051bed248cd63641d2 Mon Sep 17 00:00:00 2001 From: pengtao Date: Fri, 27 Sep 2019 23:17:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=A4=84=E7=90=86locationid?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E7=9A=84=E4=BF=9D=E6=8A=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ad_tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ad_tasks.py b/ad_tasks.py index e7d8020..73ead7c 100644 --- a/ad_tasks.py +++ b/ad_tasks.py @@ -27,7 +27,7 @@ def get_area_by_locationid(ldid): if data: return data[0][0].replace("[", "").replace("]", "").replace('"', "") else: - log.error(f"get area from location failed!,sql={sql}") + log.error(f"get area from location failed!,sql={sql},idld={ldid}") return area @@ -184,7 +184,7 @@ def send_cache_data(): if my_redis.sismember(key, values): my_redis.srem(key, values) my_redis.expire(f"adinfo::{values}::info", 1) - log.info(f"remove {id} from {key} success!") + #log.info(f"remove {id} from {key} success!") except Exception: log.error("拆解过期数据出错!", exc_info=True)