开启日志用于调试
This commit is contained in:
parent
f233db3753
commit
464b50e96b
@ -165,8 +165,11 @@ def produce_task():
|
|||||||
except Exception:
|
except Exception:
|
||||||
log.error(f"split {line} failed!", exc_info=True)
|
log.error(f"split {line} failed!", exc_info=True)
|
||||||
run_status = 0
|
run_status = 0
|
||||||
|
|
||||||
log.info(f"produce {len(all)} 2 redis!") #log.info("end produce cache!")
|
log.info(f"produce {len(all)} 2 redis!") #log.info("end produce cache!")
|
||||||
my_redis.set("ad_produce", run_status)
|
my_redis.set("ad_produce", run_status)
|
||||||
now = datetime.datetime.now()
|
now = datetime.datetime.now()
|
||||||
timestamp = int(datetime.datetime.timestamp(now))
|
timestamp = int(datetime.datetime.timestamp(now))
|
||||||
my_redis.set("ad_produce_time", timestamp)
|
my_redis.set("ad_produce_time", timestamp)
|
||||||
|
del data
|
||||||
|
del all
|
||||||
|
Loading…
x
Reference in New Issue
Block a user