adding logging for c2 auto sync
This commit is contained in:
@@ -198,13 +198,17 @@ def do_sync(w, options, quick=False):
|
||||
return 0
|
||||
|
||||
if do_c2_export: # pragma: no cover
|
||||
dologging('c2_log.log','Exporting workout to C2 for user {user}'.format(user=w.user.user.id))
|
||||
try:
|
||||
message, id = c2stuff.workout_c2_upload(
|
||||
w.user.user, w, asynchron=True)
|
||||
dologging('c2_log.log','C2 upload succeeded')
|
||||
except NoTokenError:
|
||||
id = 0
|
||||
message = "Something went wrong with the Concept2 sync"
|
||||
dologging('c2_log.log','C2 no token error')
|
||||
except: # pragma: no cover
|
||||
dologging('c2_log.log','Error C2')
|
||||
pass
|
||||
|
||||
if do_strava_export: # pragma: no cover
|
||||
|
||||
Reference in New Issue
Block a user