diff --git a/lib/services/metadata/metadata_edit_service.dart b/lib/services/metadata/metadata_edit_service.dart index 4eeecbfed..447a05085 100644 --- a/lib/services/metadata/metadata_edit_service.dart +++ b/lib/services/metadata/metadata_edit_service.dart @@ -8,6 +8,7 @@ import 'package:aves/services/common/services.dart'; import 'package:aves_model/aves_model.dart'; import 'package:aves_report/aves_report.dart'; import 'package:collection/collection.dart'; +import 'package:flutter/foundation.dart'; import 'package:flutter/services.dart'; import 'package:stack_trace/stack_trace.dart'; @@ -143,12 +144,22 @@ class PlatformMetadataEditService implements MetadataEditService { StackTrace? _currentStack() => ReportService.buildReportStack(Trace.current(), level: 1); // distinct exceptions to convince Crashlytics to split reports into distinct issues + // The distinct debug statement is there to make the body unique, so that the methods are not merged at compile time. - Future mp4LargeMoov(CustomPlatformException e) => reportService.recordError(e, _currentStack()); + Future mp4LargeMoov(CustomPlatformException e) { + debugPrint('mp4LargeMoov $e'); + return reportService.recordError(e, _currentStack()); + } - Future mp4LargeOther(CustomPlatformException e) => reportService.recordError(e, _currentStack()); + Future mp4LargeOther(CustomPlatformException e) { + debugPrint('mp4LargeOther $e'); + return reportService.recordError(e, _currentStack()); + } - Future fileNotFound(CustomPlatformException e) => reportService.recordError(e, _currentStack()); + Future fileNotFound(CustomPlatformException e) { + debugPrint('fileNotFound $e'); + return reportService.recordError(e, _currentStack()); + } } class CustomPlatformException {