Skip to content

Commit

Permalink
Add better debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
srjlewis committed May 30, 2020
1 parent 845b85d commit 7d2db56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/JsonRPC/HttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,9 @@ public function execute($payload, array $headers = array())
$debugResponse = $rawResponse;
}
error_log('==> Request: ' . PHP_EOL . implode(PHP_EOL,
$requestHeaders) . PHP_EOL . (is_string($payload) ? $payload : json_encode($payload,
$requestHeaders) .PHP_EOL . PHP_EOL . (is_string($payload) ? $payload : json_encode($payload,
JSON_PRETTY_PRINT)));
error_log('==> Response: ' . PHP_EOL . implode(PHP_EOL, $headers) . PHP_EOL . $debugResponse);
error_log('==> Response: ' . PHP_EOL . implode('', $headers) . PHP_EOL . $debugResponse);
}

$this->handleExceptions($headers);
Expand Down

0 comments on commit 7d2db56

Please sign in to comment.