File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,9 @@ impl crate::Client {
79
79
} ,
80
80
Err ( error) => {
81
81
tracing:: error!( "JSON deserialization error: {error}" ) ;
82
+ if let Ok ( text) = String :: from_utf8 ( bytes) {
83
+ tracing:: trace!( "{text}" ) ;
84
+ }
82
85
Err ( Error :: from ( error) )
83
86
} ,
84
87
} , // Ok
@@ -89,7 +92,7 @@ impl crate::Client {
89
92
} // match
90
93
} else {
91
94
tracing:: error!(
92
- "Google Maps API HTTP request was not successful : {status}" ,
95
+ "Google Maps API HTTP request unsuccessful : {status}" ,
93
96
status = response. status( ) ,
94
97
) ;
95
98
Err ( Error :: from ( response. status ( ) ) )
Original file line number Diff line number Diff line change @@ -87,6 +87,9 @@ impl crate::Client {
87
87
} ,
88
88
Err ( error) => {
89
89
tracing:: error!( "JSON deserialization error: {error}" ) ;
90
+ if let Ok ( text) = String :: from_utf8 ( bytes) {
91
+ tracing:: trace!( "{text}" ) ;
92
+ }
90
93
Err ( Error :: from ( error) )
91
94
} ,
92
95
} , // Ok
@@ -97,7 +100,7 @@ impl crate::Client {
97
100
} // match
98
101
} else {
99
102
tracing:: error!(
100
- "Google Maps API HTTP request was not successful : {status}" ,
103
+ "Google Maps API HTTP request was unsuccessful : {status}" ,
101
104
status = response. status( ) ,
102
105
) ;
103
106
Err ( Error :: from ( response. status ( ) ) )
You can’t perform that action at this time.
0 commit comments