Skip to content

Commit

Permalink
Backout of change to use WC_Logger (Fixes #10)
Browse files Browse the repository at this point in the history
  • Loading branch information
anderly committed Feb 9, 2015
1 parent 9a9e1d3 commit 6fc4b65
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -69,6 +69,9 @@ If you need help, have problems, want to leave feedback or want to provide const

### Changelog

#### 1.3.6
* Backout of change to use WC_Logger due to fatal error

#### 1.3.5
* Fix for undefined variable list and array_merge issue.
* Change to use WC_Logger instead of error_log
Expand Down
7 changes: 3 additions & 4 deletions classes/class-ss-wc-integration-mailchimp.php
Expand Up @@ -9,7 +9,7 @@
*
* @class SS_WC_Integration_MailChimp
* @extends WC_Integration
* @version 1.3.5
* @version 1.3.6
* @package WooCommerce MailChimp
* @author Saint Systems
*/
Expand Down Expand Up @@ -575,13 +575,12 @@ function maybe_save_checkout_fields( $order_id ) {
*/
static function log( $message ) {
if ( WP_DEBUG === true ) {
$logger = new WC_Logger();

if ( is_array( $message ) || is_object( $message ) ) {
$logger->add( $this->id, print_r( $message, true ) );
error_log( print_r( $message, true ) );
}
else {
$logger->add( $this->id, $message );
error_log( $message );
}
}
}
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Expand Up @@ -3,7 +3,7 @@ Contributors: anderly, saintsystems
Tags: woocommerce, mailchimp
Requires at least: 3.5.1
Tested up to: 4.1
Stable tag: 1.3.5
Stable tag: 1.3.6
License: GPLv3

Simple and flexible MailChimp integration for WooCommerce.
Expand Down Expand Up @@ -78,6 +78,9 @@ If you need help, have problems, want to leave feedback or want to provide const

== Changelog ==

= 1.3.6 =
* Backout of change to use WC_Logger due to fatal error

= 1.3.5 =
* Fix for undefined variable list and array_merge issue.
* Change to use WC_Logger instead of error_log
Expand Down
2 changes: 1 addition & 1 deletion woocommerce-mailchimp.php
Expand Up @@ -5,7 +5,7 @@
* Description: WooCommerce MailChimp provides simple MailChimp integration for WooCommerce.
* Author: Adam Anderly
* Author URI: http://anderly.com
* Version: 1.3.5
* Version: 1.3.6
* Text Domain: ss_wc_mailchimp
* Domain Path: languages
*
Expand Down

0 comments on commit 6fc4b65

Please sign in to comment.