Use logging package in the exception dialogs

This commit is contained in:
Roland Geider
2025-03-19 10:16:09 +01:00
parent ea41b49051
commit 0d1c55a9d3

View File

@@ -16,9 +16,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import 'dart:developer';
import 'package:flutter/material.dart';
import 'package:logging/logging.dart';
import 'package:provider/provider.dart';
import 'package:wger/exceptions/http_exception.dart';
import 'package:wger/l10n/generated/app_localizations.dart';
@@ -54,9 +53,10 @@ void showHttpExceptionErrorDialog(
WgerHttpException exception,
BuildContext context,
) {
log('showHttpExceptionErrorDialog: ');
log(exception.toString());
log('-------------------');
final logger = Logger('showHttpExceptionErrorDialog');
logger.fine(exception.toString());
logger.fine('-------------------');
final List<Widget> errorList = [];