开启日志用于调试
This commit is contained in:
parent
e18fd312f6
commit
e7e274f4d6
@ -50,14 +50,14 @@ def sadd_adkey(key, line):
|
|||||||
redis_key = f"{line['id']}_{locationid}"
|
redis_key = f"{line['id']}_{locationid}"
|
||||||
my_redis.sadd(key, redis_key)
|
my_redis.sadd(key, redis_key)
|
||||||
my_redis.expire(key, adkey_expire)
|
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"
|
info_key = f"adinfo::{redis_key}::info"
|
||||||
new_line = split_ad_info(locationid, line)
|
new_line = split_ad_info(locationid, line)
|
||||||
|
|
||||||
if new_line:
|
if new_line:
|
||||||
my_redis.hmset(info_key, new_line)
|
my_redis.hmset(info_key, new_line)
|
||||||
my_redis.expire(info_key, info_expire)
|
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:
|
else:
|
||||||
log.error(f"split adinfo about locationid failed! localtionid={locationid} ")
|
log.error(f"split adinfo about locationid failed! localtionid={locationid} ")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user