diff --git a/lib/components/global_snackbar.dart b/lib/components/global_snackbar.dart index bcd2bce4..6758d7d2 100644 --- a/lib/components/global_snackbar.dart +++ b/lib/components/global_snackbar.dart @@ -86,7 +86,7 @@ class GlobalSnackbar { /// Show an unlocalized error message to the user static void error(dynamic event) => _enqueue(() => _error(event)); static void _error(dynamic event) { - _logger.warning("Displaying error: $event"); + _logger.warning("Displaying error: $event", event); if (event is Error && event.stackTrace != null) { _logger.warning(event.stackTrace); } diff --git a/lib/services/queue_service.dart b/lib/services/queue_service.dart index 48c9d09a..4613360d 100644 --- a/lib/services/queue_service.dart +++ b/lib/services/queue_service.dart @@ -457,8 +457,12 @@ class QueueService { source: source, order: order, initialIndex: startingIndex); + _queueServiceLogger.info( + "Started playing '${GlobalSnackbar.materialAppScaffoldKey.currentContext != null ? source.name.getLocalized(GlobalSnackbar.materialAppScaffoldKey.currentContext!) : source.name.type}' (${source.type}) in order $order from index $startingIndex"); _queueServiceLogger - .info("Started playing '${source.name}' (${source.type})"); + .info("Items for queue: ${items.map((e) => e.name).join(", ")}"); + _queueServiceLogger + .info("Items for queue: ${items.map((e) => e.name).join(", ")}"); } /// Replaces the queue with the given list of items. If startAtIndex is specified, Any items below it