From e7e274f4d6746e7f916a730b100753c236a6e9e7 Mon Sep 17 00:00:00 2001 From: pengtao Date: Wed, 9 Oct 2019 16:28:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=90=AF=E6=97=A5=E5=BF=97=E7=94=A8?= =?UTF-8?q?=E4=BA=8E=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ops/ad_produce.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ops/ad_produce.py b/ops/ad_produce.py index 8b4af72..3b7fe50 100644 --- a/ops/ad_produce.py +++ b/ops/ad_produce.py @@ -50,14 +50,14 @@ def sadd_adkey(key, line): redis_key = f"{line['id']}_{locationid}" my_redis.sadd(key, redis_key) my_redis.expire(key, adkey_expire) - print(f"add {redis_key} 2 {key}!") + log.info(f"add {redis_key} 2 {key}!") info_key = f"adinfo::{redis_key}::info" new_line = split_ad_info(locationid, line) if new_line: my_redis.hmset(info_key, new_line) my_redis.expire(info_key, info_expire) - print(f"add info {new_line} 2 {info_key}!") + log.info(f"add info {new_line} 2 {info_key}!") else: log.error(f"split adinfo about locationid failed! localtionid={locationid} ")