File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import 'package:http/http.dart' as http;
2
2
import 'exception.dart';
3
3
import 'response.dart';
4
4
import 'dart:convert';
5
+ import 'dart:developer';
5
6
import 'enums.dart';
6
7
7
8
class ClientMixin {
@@ -70,7 +71,7 @@ class ClientMixin {
70
71
71
72
String? warnings = res.headers['x-{{ spec .title | lower }}-warning'];
72
73
if (warnings != null) {
73
- warnings.split(';').forEach((warning) => print( warning));
74
+ warnings.split(';').forEach((warning) => log('Warning: $ warning' ));
74
75
}
75
76
76
77
if (res.statusCode >= 400) {
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import 'package:http/http.dart' as http;
2
2
import 'exception.dart';
3
3
import 'response.dart';
4
4
import 'dart:convert';
5
+ import 'dart:developer';
5
6
import 'enums.dart';
6
7
7
8
class ClientMixin {
@@ -70,7 +71,7 @@ class ClientMixin {
70
71
71
72
String? warnings = res.headers['x-{{ spec .title | lower }}-warning'];
72
73
if (warnings != null) {
73
- warnings.split(';').forEach((warning) => print( warning));
74
+ warnings.split(';').forEach((warning) => log('Warning: $ warning' ));
74
75
}
75
76
76
77
if (res.statusCode >= 400) {
You can’t perform that action at this time.
0 commit comments