adding extra logging
This commit is contained in:
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
Binary file not shown.
@@ -568,6 +568,8 @@ def strokedata_fit(request):
|
||||
with open(fit_filename, 'wb') as fit_file:
|
||||
fit_file.write(fit_data)
|
||||
except Exception as e:
|
||||
dologging('apilog.log','FIT')
|
||||
dologging('apilog.log',e)
|
||||
return JsonResponse({
|
||||
"status": "error",
|
||||
"message": f"An error occurred while saving the FIT file: {str(e)}"
|
||||
@@ -578,6 +580,8 @@ def strokedata_fit(request):
|
||||
try:
|
||||
row = FP(fit_filename)
|
||||
except ValueError as e:
|
||||
dologging('apilog.log','FIT error')
|
||||
dologging('apilog.log',e)
|
||||
return JsonResponse({
|
||||
"status": "error",
|
||||
"message": f"An error occurred while parsing the FIT file: {str(e)}"
|
||||
|
||||
Reference in New Issue
Block a user