function mailchimp_ecommerce_log_error_message in Mailchimp E-Commerce 8
Same name and namespace in other branches
- 7 mailchimp_ecommerce.module \mailchimp_ecommerce_log_error_message()
Logs an error message using watchdog, if enabled.
@todo This function cannot run, the function "watchdog" is never defined.
Parameters
string $message: The error message to log.
15 calls to mailchimp_ecommerce_log_error_message()
- CustomerHandler::addOrUpdateCustomer in src/
CustomerHandler.php - @inheritdoc
- CustomerHandler::deleteCustomer in src/
CustomerHandler.php - @inheritdoc
- CustomerHandler::getCustomer in src/
CustomerHandler.php - @inheritdoc
- OrderHandler::addOrder in src/
OrderHandler.php - @inheritdoc
- OrderHandler::getOrder in src/
OrderHandler.php - @inheritdoc
File
- ./
mailchimp_ecommerce.module, line 102 - Mailchimp eCommerce core functionality.
Code
function mailchimp_ecommerce_log_error_message($message) {
if (function_exists('watchdog')) {
\Drupal::logger('mailchimp_ecommerce')
->error('%message', array(
'%message' => $message,
));
}
}