more logging on strava
This commit is contained in:
@@ -1064,6 +1064,13 @@ def strava_webhook_view(request):
|
||||
ws = Workout.objects.filter(uploadedtostrava=stravaid)
|
||||
if ws.count()==0 and r.strava_auto_import:
|
||||
job = stravastuff.async_get_workout(r.user,stravaid)
|
||||
if job == 0:
|
||||
timestamp = time.strftime('%b-%d-%Y_%H%M',t)
|
||||
with open('strava_webhooks.log','a') as f:
|
||||
f.write('\n')
|
||||
f.write(timestamp)
|
||||
f.write(' ')
|
||||
f.write('Strava strava_open yielded NoTokenError')
|
||||
else:
|
||||
timestamp = time.strftime('%b-%d-%Y_%H%M', t)
|
||||
with open('strava_webhooks.log','a') as f:
|
||||
|
||||
Reference in New Issue
Block a user