Add logging when tne unawaited handleUpdateExerciseFromApi

This call might be causing problems when the app is sent to the background
This commit is contained in:
Roland Geider
2026-02-24 20:52:52 +01:00
parent 1462ab1319
commit 06de449d20

View File

@@ -314,7 +314,14 @@ class ExercisesProvider with ChangeNotifier {
// Note: no await since we don't care for the updated data right now. It
// will be written to the db whenever the request finishes and we will get
// the updated exercise the next time
handleUpdateExerciseFromApi(database, exerciseId);
handleUpdateExerciseFromApi(database, exerciseId).then(
(_) {},
onError: (error, stackTrace) => _logger.info(
'Error while calling unawaited handleUpdateExerciseFromApi',
error,
stackTrace,
),
);
return exercise;
} on NoSuchEntryException {