Private
Public Access
1
0

adding some extra logging

This commit is contained in:
Sander Roosendaal
2021-03-02 18:10:22 +01:00
parent 61ae872c34
commit 8dde220cf8

View File

@@ -2953,6 +2953,9 @@ def handle_rp3_async_workout(userid,rp3token,rp3id,startdatetime,debug=False,**k
@app.task
def handle_c2_async_workout(alldata,userid,c2token,c2id,delaysec,defaulttimezone,debug=False,**kwargs):
time.sleep(delaysec)
with open("c2_auto_import.log","a") as errorlog:
timestr = time.strftime("%Y%m%d-%H%M%S")
errorlog.write(timestr+' '+str(c2id)+'for userid '+str(userid)+'\r\n')
data = alldata[c2id]
splitdata = None