fix: logging interceptor formatting.
Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
@@ -101,8 +101,7 @@ class LoggingInterceptor extends Interceptor {
|
|||||||
options.data as Map?,
|
options.data as Map?,
|
||||||
header: 'Body',
|
header: 'Body',
|
||||||
);
|
);
|
||||||
}
|
} else if (data is FormData) {
|
||||||
if (data is FormData) {
|
|
||||||
final formDataMap = <String, dynamic>{}
|
final formDataMap = <String, dynamic>{}
|
||||||
..addEntries(data.fields)
|
..addEntries(data.fields)
|
||||||
..addEntries(data.files);
|
..addEntries(data.files);
|
||||||
@@ -163,7 +162,7 @@ class LoggingInterceptor extends Interceptor {
|
|||||||
_logPrintResponse('║');
|
_logPrintResponse('║');
|
||||||
_printResponse(_logPrintResponse, response);
|
_printResponse(_logPrintResponse, response);
|
||||||
_logPrintResponse('║');
|
_logPrintResponse('║');
|
||||||
_logPrintResponse('╚');
|
_printLine(_logPrintResponse, '╚');
|
||||||
}
|
}
|
||||||
super.onResponse(response, handler);
|
super.onResponse(response, handler);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user