Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/Issue-979' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
angelleye committed May 9, 2018
2 parents 45f4ffb + 2af346d commit ac1e0e4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions classes/wc-gateway-paypal-pro-payflow-angelleye.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function __construct() {
add_action('admin_notices', array($this, 'angelleye_paypal_pro_payflow_reference_transaction_notice'));
}

public function add_log($message, $level = 'info') {
public function add_log($message, $level = 'info') {
if ($this->debug) {
if (version_compare(WC_VERSION, '3.0', '<')) {
if (empty($this->log)) {
Expand All @@ -129,8 +129,11 @@ public function add_log($message, $level = 'info') {
} else {
if (empty($this->log)) {
$this->log = wc_get_logger();
}
$this->log->log($level, $message, array('source' => 'paypal_pro_payflow'));
}
$this->log->log($level,sprintf(__('PayPal for WooCommerce Version: %s', 'paypal-for-woocommerce'), VERSION_PFW),array('source' => 'paypal_pro_payflow'));
$this->log->log($level,sprintf(__('WooCommerce Version: %s', 'paypal-for-woocommerce'), WC_VERSION),array('source' => 'paypal_pro_payflow'));
$this->log->log($level,'Test Mode: ' . $this->testmode,array('source' => 'paypal_pro_payflow'));
$this->log->log($level, $message, array('source' => 'paypal_pro_payflow'),array('source' => 'paypal_pro_payflow'));
}
}
}
Expand Down

0 comments on commit ac1e0e4

Please sign in to comment.