diff --git a/backend/src/utils/global_instances.dart b/backend/src/utils/global_instances.dart index ae4eee2..55058ea 100644 --- a/backend/src/utils/global_instances.dart +++ b/backend/src/utils/global_instances.dart @@ -1,9 +1,3 @@ -import 'dart:io'; - import 'package:logger/logger.dart'; -final logger = Logger( - filter: Platform.environment['CORS_URL']?.contains('0.0.0.0') ?? false - ? DevelopmentFilter() - : ProductionFilter(), -); +final logger = Logger(); diff --git a/frontend/lib/common/providers.dart b/frontend/lib/common/providers.dart index 85be6a5..ffd5ada 100644 --- a/frontend/lib/common/providers.dart +++ b/frontend/lib/common/providers.dart @@ -1,4 +1,5 @@ import 'package:dio/dio.dart'; +import 'package:flutter/foundation.dart'; import 'package:flutter_dotenv/flutter_dotenv.dart'; import 'package:frontend/utils/extensions.dart'; import 'package:pretty_dio_logger/pretty_dio_logger.dart'; @@ -36,6 +37,8 @@ Dio dio(DioRef ref) { }, ), PrettyDioLogger( + // ignore: avoid_redundant_argument_values + enabled: kDebugMode, requestHeader: true, requestBody: true, responseHeader: true,