File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -143,13 +143,16 @@ public function sendHttpRequest(): self {
143
143
public function requestSent (): bool {
144
144
return $ this ->request_sent ;
145
145
}
146
+ protected function getRequestLogContent (): string {
147
+ return $ this ->client ->__toString ();
148
+ }
146
149
protected function recv (): \Swlib \Saber \Response {
147
150
if (! $ this ->request_sent ) {
148
151
throw new \Exception ('Request not sent ' );
149
152
}
150
153
$ client = $ this ->client ;
151
154
$ log_string = date ('[Y-m-d H:i:s] ' , $ this ->send_time ) . "----------Request---------- \n" ;
152
- $ log_string .= $ client -> __toString () . "\n" ;
155
+ $ log_string .= $ this -> getRequestLogContent () . "\n" ;
153
156
try {
154
157
$ response = $ client ->recv ();
155
158
$ code = $ response ->statusCode ;
You can’t perform that action at this time.
0 commit comments