You are here

function mailchimp_ecommerce_log_error_message in Mailchimp E-Commerce 7

Same name and namespace in other branches
  1. 8 mailchimp_ecommerce.module \mailchimp_ecommerce_log_error_message()

Logs an error message using watchdog, if enabled.

Parameters

string $message: The error message to log.

23 calls to mailchimp_ecommerce_log_error_message()
mailchimp_ecommerce_add_cart in ./mailchimp_ecommerce.module
Adds a new cart to the current Mailchimp store.
mailchimp_ecommerce_add_cart_line in ./mailchimp_ecommerce.module
Adds a line to a cart in the current Mailchimp store.
mailchimp_ecommerce_add_customer in ./mailchimp_ecommerce.module
Add a new customer to Mailchimp.
mailchimp_ecommerce_add_order in ./mailchimp_ecommerce.module
Adds a new order to the current Mailchimp store.
mailchimp_ecommerce_add_product in ./mailchimp_ecommerce.module
Adds a product to Mailchimp.

... See full list

File

./mailchimp_ecommerce.module, line 1281
Mailchimp eCommerce core functionality.

Code

function mailchimp_ecommerce_log_error_message($message) {
  if (function_exists('watchdog')) {
    watchdog('mailchimp_ecommerce', '%message', [
      '%message' => $message,
    ], WATCHDOG_ERROR);
  }
}