From 100ad5c367d70c06406c932f307adf48ea51c0dc Mon Sep 17 00:00:00 2001 From: Inex Code Date: Tue, 6 Aug 2024 21:59:12 +0300 Subject: [PATCH] refactor: Remove REST logger --- lib/logic/api_maps/rest_maps/rest_api_map.dart | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/logic/api_maps/rest_maps/rest_api_map.dart b/lib/logic/api_maps/rest_maps/rest_api_map.dart index 3e06a803..6501a7de 100644 --- a/lib/logic/api_maps/rest_maps/rest_api_map.dart +++ b/lib/logic/api_maps/rest_maps/rest_api_map.dart @@ -4,9 +4,6 @@ import 'dart:io'; import 'package:dio/dio.dart'; import 'package:dio/io.dart'; -import 'package:flutter/foundation.dart'; -import 'package:pretty_dio_logger/pretty_dio_logger.dart'; -import 'package:selfprivacy/config/config.dart'; import 'package:selfprivacy/config/get_it_config.dart'; import 'package:selfprivacy/logic/models/console_log.dart'; import 'package:selfprivacy/utils/app_logger.dart'; @@ -16,11 +13,6 @@ abstract class RestApiMap { Future getClient({final BaseOptions? customOptions}) async { final Dio dio = Dio(customOptions ?? (await options)); - if (hasLogger && config.shouldDebugPrint) { - dio.interceptors.add( - PrettyDioLogger(logPrint: (final object) => debugPrint('$object')), - ); - } dio.interceptors.add(ConsoleInterceptor()); dio.httpClientAdapter = IOHttpClientAdapter( createHttpClient: () {