more logging
This commit is contained in:
@@ -196,6 +196,12 @@ def get_c2_workouts(rower,do_async=True):
|
|||||||
knownc2ids = uniqify(knownc2ids+tombstones+parkedids)
|
knownc2ids = uniqify(knownc2ids+tombstones+parkedids)
|
||||||
|
|
||||||
newids = [c2id for c2id in c2ids if not c2id in knownc2ids]
|
newids = [c2id for c2id in c2ids if not c2id in knownc2ids]
|
||||||
|
with open("c2_auto_import.log","a") as errorlog:
|
||||||
|
timestr = time.strftime("%Y%m%d-%H%M%S")
|
||||||
|
newidjson = json.dumps(newids)
|
||||||
|
errorlog.write(timestr+'New IDs found \r\n')
|
||||||
|
errorlog.write(newidjson)
|
||||||
|
errorlog.write('\r\n')
|
||||||
|
|
||||||
newparkedids = uniqify(newids+parkedids)
|
newparkedids = uniqify(newids+parkedids)
|
||||||
|
|
||||||
|
|||||||
@@ -2955,7 +2955,7 @@ def handle_c2_async_workout(alldata,userid,c2token,c2id,delaysec,defaulttimezone
|
|||||||
time.sleep(delaysec)
|
time.sleep(delaysec)
|
||||||
with open("c2_auto_import.log","a") as errorlog:
|
with open("c2_auto_import.log","a") as errorlog:
|
||||||
timestr = time.strftime("%Y%m%d-%H%M%S")
|
timestr = time.strftime("%Y%m%d-%H%M%S")
|
||||||
errorlog.write(timestr+' '+str(c2id)+'for userid '+str(userid)+'\r\n')
|
errorlog.write(timestr+' '+str(c2id)+' for userid '+str(userid)+'\r\n')
|
||||||
data = alldata[c2id]
|
data = alldata[c2id]
|
||||||
splitdata = None
|
splitdata = None
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user