logs
This commit is contained in:
parent
9ac185933b
commit
5677dab9fb
3 changed files with 15 additions and 1 deletions
|
@ -118,6 +118,11 @@ class PlatformMediaEditService implements MediaEditService {
|
||||||
required String destinationAlbum,
|
required String destinationAlbum,
|
||||||
required NameConflictStrategy nameConflictStrategy,
|
required NameConflictStrategy nameConflictStrategy,
|
||||||
}) {
|
}) {
|
||||||
|
// TODO TLAD remove log when OOMs are inspected
|
||||||
|
entries.where((v) => (v.sizeBytes ?? 0) > 20000000).forEach((entry) {
|
||||||
|
reportService.log('convert large entry=$entry size=${entry.sizeBytes}');
|
||||||
|
});
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return _opStream
|
return _opStream
|
||||||
.receiveBroadcastStream(<String, dynamic>{
|
.receiveBroadcastStream(<String, dynamic>{
|
||||||
|
|
|
@ -77,6 +77,11 @@ class PlatformMetadataEditService implements MetadataEditService {
|
||||||
Map<MetadataType, dynamic> metadata, {
|
Map<MetadataType, dynamic> metadata, {
|
||||||
bool autoCorrectTrailerOffset = true,
|
bool autoCorrectTrailerOffset = true,
|
||||||
}) async {
|
}) async {
|
||||||
|
// TODO TLAD remove log when OOMs are inspected
|
||||||
|
if ((entry.sizeBytes ?? 0) > 20000000) {
|
||||||
|
await reportService.log('edit metadata of large entry=$entry size=${entry.sizeBytes}');
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final result = await _platform.invokeMethod('editMetadata', <String, dynamic>{
|
final result = await _platform.invokeMethod('editMetadata', <String, dynamic>{
|
||||||
'entry': entry.toPlatformEntryMap(),
|
'entry': entry.toPlatformEntryMap(),
|
||||||
|
|
|
@ -556,6 +556,7 @@ class _AvesAppState extends State<AvesApp> with WidgetsBindingObserver {
|
||||||
'locales': WidgetsBinding.instance.window.locales.join(', '),
|
'locales': WidgetsBinding.instance.window.locales.join(', '),
|
||||||
'time_zone': '${now.timeZoneName} (${now.timeZoneOffset})',
|
'time_zone': '${now.timeZoneName} (${now.timeZoneOffset})',
|
||||||
});
|
});
|
||||||
|
await reportService.log('Launch');
|
||||||
setState(() => _navigatorObservers = [
|
setState(() => _navigatorObservers = [
|
||||||
AvesApp.pageRouteObserver,
|
AvesApp.pageRouteObserver,
|
||||||
ReportingRouteTracker(),
|
ReportingRouteTracker(),
|
||||||
|
@ -566,7 +567,10 @@ class _AvesAppState extends State<AvesApp> with WidgetsBindingObserver {
|
||||||
debugPrint('$runtimeType onNewIntent with intentData=$intentData');
|
debugPrint('$runtimeType onNewIntent with intentData=$intentData');
|
||||||
|
|
||||||
// do not reset when relaunching the app
|
// do not reset when relaunching the app
|
||||||
if (_appModeNotifier.value == AppMode.main && (intentData == null || intentData.isEmpty == true)) return;
|
if (_appModeNotifier.value == AppMode.main && (intentData == null || intentData.isEmpty == true)) {
|
||||||
|
reportService.log('Relaunch');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
reportService.log('New intent data=$intentData');
|
reportService.log('New intent data=$intentData');
|
||||||
AvesApp.navigatorKey.currentState!.pushReplacement(DirectMaterialPageRoute(
|
AvesApp.navigatorKey.currentState!.pushReplacement(DirectMaterialPageRoute(
|
||||||
|
|
Loading…
Reference in a new issue