update cart/favorite
This commit is contained in:
@@ -249,13 +249,13 @@ class CustomCurlLoggerInterceptor extends Interceptor {
|
||||
@override
|
||||
void onRequest(RequestOptions options, RequestInterceptorHandler handler) {
|
||||
final curl = _cURLRepresentation(options);
|
||||
debugPrint(
|
||||
'╔╣ CURL Request ╠══════════════════════════════════════════════════',
|
||||
);
|
||||
debugPrint(curl);
|
||||
debugPrint(
|
||||
'╚═════════════════════════════════════════════════════════════════',
|
||||
);
|
||||
// debugPrint(
|
||||
// '╔╣ CURL Request ╠══════════════════════════════════════════════════',
|
||||
// );
|
||||
// debugPrint(curl);
|
||||
// debugPrint(
|
||||
// '╚═════════════════════════════════════════════════════════════════',
|
||||
// );
|
||||
// Also log to dart:developer for better filtering in DevTools
|
||||
developer.log(curl, name: 'DIO_CURL', time: DateTime.now());
|
||||
handler.next(options);
|
||||
@@ -468,7 +468,7 @@ Future<Dio> dio(Ref ref) async {
|
||||
// Add interceptors in order
|
||||
// 1. Custom Curl interceptor (first to log cURL commands)
|
||||
// Uses debugPrint and developer.log for better visibility
|
||||
// ..interceptors.add(CustomCurlLoggerInterceptor())
|
||||
..interceptors.add(CustomCurlLoggerInterceptor())
|
||||
// 2. Logging interceptor
|
||||
..interceptors.add(ref.watch(loggingInterceptorProvider))
|
||||
// 3. Auth interceptor (add tokens to requests)
|
||||
|
||||
@@ -131,7 +131,7 @@ final class DioProvider
|
||||
}
|
||||
}
|
||||
|
||||
String _$dioHash() => r'f15495e99d11744c245e2be892657748aeeb8ae7';
|
||||
String _$dioHash() => r'd15bfe824d6501e5cbd56ff152de978030d97be4';
|
||||
|
||||
/// Provider for DioClient
|
||||
|
||||
|
||||
Reference in New Issue
Block a user