Skip to content

Commit

Permalink
fix log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiosanches committed Dec 21, 2013
1 parent b007313 commit 9af83dd
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 11 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
**Tags:** woocommerce, checkout, moip
**Requires at least:** 3.8
**Tested up to:** 3.8
**Stable tag:** 2.2.3
**Stable tag:** 2.2.4
**License:** GPLv2 or later
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -171,6 +171,10 @@ Entre em contato [clicando aqui](http://claudiosmweb.com/plugins/moip-para-wooco

## Changelog ##

### 2.2.4 - 21/12/2013 ###

* Correção nas mensagens de log.

### 2.2.3 - 21/12/2013 ###

* Correção na tradução do plugin.
Expand Down Expand Up @@ -254,9 +258,9 @@ Entre em contato [clicando aqui](http://claudiosmweb.com/plugins/moip-para-wooco

## Upgrade Notice ##

### 2.2.3 ###
### 2.2.4 ###

* Correção na tradução do plugin.
* Correção nas mensagens de log.

## License ##

Expand Down
4 changes: 1 addition & 3 deletions includes/class-wc-moip-gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -755,9 +755,7 @@ protected function create_payment_token( $order ) {

} else {
if ( 'yes' == $this->debug ) {
$error = new SimpleXmlElement( $response['body'], LIBXML_NOCDATA );

$this->log->add( 'moip', 'Failed to generate the Moip Payment Token: ' . $response['response']['code'] . ' - ' . $response['response']['message'] );
$this->log->add( 'moip', 'Failed to generate the Moip Payment Token, the status was: ' . $response['response']['code'] . ' - ' . $response['response']['message'] . '. With the content: ' . $response['body'] );
}
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "woocommerce-moip",
"description": "Gateway de pagamento MoIP para WooCommerce",
"version": "2.2.3",
"version": "2.2.4",
"main": "Gruntfile.js",
"dependencies": {
"grunt": "~0.4.1",
Expand Down
10 changes: 7 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: http://claudiosmweb.com/doacoes/
Tags: woocommerce, checkout, moip
Requires at least: 3.8
Tested up to: 3.8
Stable tag: 2.2.3
Stable tag: 2.2.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -165,6 +165,10 @@ Entre em contato [clicando aqui](http://claudiosmweb.com/plugins/moip-para-wooco

== Changelog ==

= 2.2.4 - 21/12/2013 =

* Correção nas mensagens de log.

= 2.2.3 - 21/12/2013 =

* Correção na tradução do plugin.
Expand Down Expand Up @@ -248,9 +252,9 @@ Entre em contato [clicando aqui](http://claudiosmweb.com/plugins/moip-para-wooco

== Upgrade Notice ==

= 2.2.3 =
= 2.2.4 =

* Correção na tradução do plugin.
* Correção nas mensagens de log.

== License ==

Expand Down
2 changes: 1 addition & 1 deletion wc-moip.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: Gateway de pagamento Moip para WooCommerce.
* Author: claudiosanches
* Author URI: http://claudiosmweb.com/
* Version: 2.2.3
* Version: 2.2.4
* License: GPLv2 or later
* Text Domain: woocommerce-moip
* Domain Path: /languages/
Expand Down

0 comments on commit 9af83dd

Please sign in to comment.