mirror of
https://github.com/wger-project/flutter.git
synced 2026-11-30 01:41:05 +01:00
Use logging package in the exception dialogs
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user