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} ")