开启日志用于调试

This commit is contained in:
pengtao 2019-10-09 18:16:40 +08:00
parent f233db3753
commit 464b50e96b

View File

@ -165,8 +165,11 @@ def produce_task():
except Exception:
log.error(f"split {line} failed!", exc_info=True)
run_status = 0
log.info(f"produce {len(all)} 2 redis!") #log.info("end produce cache!")
my_redis.set("ad_produce", run_status)
now = datetime.datetime.now()
timestamp = int(datetime.datetime.timestamp(now))
my_redis.set("ad_produce_time", timestamp)
del data
del all