function amazon_db_error_watchdog in Amazon Product Advertisement API 7
Same name and namespace in other branches
- 7.2 amazon.module \amazon_db_error_watchdog()
Have watchdog emit complete errors about a database exception.
Parameters
$msg: The message explaining the error. The message should not be localized, as it will be passed to watchdog().
$e: The exception which was caught
$extra: Array: The fields being updated, or other information.
3 calls to amazon_db_error_watchdog()
- amazon_item_insert in ./
amazon.module - Insert 'cleaned' amazon item into database.
- amazon_media_amazon_item_insert in amazon_media/
amazon_media.module - Insert the associated information into the related table.
- _amazon_item_batch_lookup_from_web_errors in ./
amazon.module
File
- ./
amazon.module, line 907
Code
function amazon_db_error_watchdog($msg, $e, $extra = array()) {
watchdog('amazon', "{$msg}: Message = %message, query= %query fields=<pre>%fields</pre>", array(
'%message' => $e
->getMessage(),
'%query' => $e->query_string,
'%fields' => print_r($extra, TRUE),
));
}