Some more C2 api forensics
This commit is contained in:
@@ -997,7 +997,7 @@ def workout_c2_upload_view(request,id=0):
|
||||
with open("media/c2errors.log","a") as errorlog:
|
||||
errorstring = str(sys.exc_info()[0])
|
||||
timestr = time.strftime("%Y%m%d-%H%M%S")
|
||||
errorlog.write(timestr+errorstring+"\n")
|
||||
errorlog.write(timestr+errorstring+"\r\n")
|
||||
|
||||
# check for duplicate error first
|
||||
if (response.status_code == 409 ):
|
||||
@@ -1017,7 +1017,7 @@ def workout_c2_upload_view(request,id=0):
|
||||
with open("media/c2errors.log","a") as errorlog:
|
||||
errorstring = str(sys.exc_info()[0])
|
||||
timestr = time.strftime("%Y%m%d-%H%M%S")
|
||||
errorlog.write(timestr+errorstring+"\n")
|
||||
errorlog.write(timestr+errorstring+"\r\n")
|
||||
|
||||
|
||||
else:
|
||||
@@ -1026,7 +1026,7 @@ def workout_c2_upload_view(request,id=0):
|
||||
with open("media/c2errors.log","a") as errorlog:
|
||||
errorstring = str(sys.exc_info()[0])
|
||||
timestr = time.strftime("%Y%m%d-%H%M%S")
|
||||
errorlog.write(timestr+errorstring+"\n")
|
||||
errorlog.write(timestr+errorstring+"\r\n")
|
||||
|
||||
else:
|
||||
message = "You are not authorized to upload this workout"
|
||||
|
||||
Reference in New Issue
Block a user