function _restclient_watchdog in RESTClient 7.2
2 calls to _restclient_watchdog()
- _restclient_request in ./
restclient.module - Basic request with no body data.
- _restclient_request_with_body in ./
restclient.module - Requests with body data.
File
- ./
restclient.module, line 1087 - Defines a standard REST interface to RESTful services
Code
function _restclient_watchdog($method, $code, $error, $url, $extra = array(), $log_severity = WATCHDOG_ERROR) {
// Check if logging is turned off - on by default
if (!variable_get('restclient_watchdog', TRUE)) {
return;
}
$debug = "";
if (!empty($extra)) {
$debug .= "\n" . print_r($extra, TRUE);
}
// @todo add support for devel watchdog functions
watchdog('restclient', 'Response for @method request is @code (@message): @url @debug', array(
'@method' => $method,
'@code' => $code,
'@message' => $error,
'@url' => $url,
'@debug' => $debug,
), $log_severity);
}