Suppress print warnings

This commit is contained in:
Roland Geider
2026-05-07 19:57:35 +02:00
parent ca18f34d4c
commit 0e7b7cb5a0
4 changed files with 8 additions and 1 deletions

View File

@@ -16,6 +16,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
// ignore_for_file: avoid_print
import 'dart:io';
import 'package:drift/drift.dart';

View File

@@ -405,6 +405,7 @@ String _formatHeader(String key) {
/// Processes the error messages from the server and returns a list of widgets
List<Widget> formatApiErrors(List<ApiError> errors, {Color? color}) {
final logger = Logger('formatApiErrors');
final textColor = color ?? Colors.black;
final List<Widget> errorList = [];
@@ -417,7 +418,7 @@ List<Widget> formatApiErrors(List<ApiError> errors, {Color? color}) {
),
);
print(error.errorMessages);
logger.warning(error.errorMessages);
for (final message in error.errorMessages) {
errorList.add(Text(message, style: TextStyle(color: textColor)));
}

View File

@@ -1,3 +1,5 @@
// ignore_for_file: avoid_print
import 'dart:convert';
import 'dart:io';

View File

@@ -1,3 +1,5 @@
// ignore_for_file: avoid_print
import 'dart:io';
import 'package:integration_test/integration_test_driver_extended.dart';