From 8dde220cf8dc9008dd946025ea5f8ff141ce7046 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Tue, 2 Mar 2021 18:10:22 +0100 Subject: [PATCH] adding some extra logging --- rowers/tasks.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rowers/tasks.py b/rowers/tasks.py index 70673d2b..29be0770 100644 --- a/rowers/tasks.py +++ b/rowers/tasks.py @@ -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