public function ServicesClientConnectionResponseException::log in Services Client 7
Same name and namespace in other branches
- 7.2 services_client_connection/include/exception.inc \ServicesClientConnectionResponseException::log()
Dump request and response to watchdog
Parameters
$severity: Watchdog severity default set to ERROR
File
- services_client_connection/
include/ exception.inc, line 55 - Custom exception definitions
Class
- ServicesClientConnectionResponseException
- Common parent class for all services client module exceptions
Code
public function log($severity = WATCHDOG_ERROR) {
watchdog('scc', 'Request: <pre>@request</pre> Error response: <pre>@response</pre>', array(
'@request' => print_r($this->request, TRUE),
'@response' => print_r($this->response, TRUE),
), $severity);
}