Private
Public Access
1
0

adding extra logging

This commit is contained in:
2025-02-15 13:14:48 +01:00
parent b024756c08
commit cc26f23307
2 changed files with 4 additions and 0 deletions

Binary file not shown.

View File

@@ -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)}"