You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pa...@apache.org on 2018/09/11 21:35:18 UTC

[camel] branch master updated: Fix syntax of some log with placeholder statements.

This is an automated email from the ASF dual-hosted git repository.

pascalschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new a126746  Fix syntax of some log with placeholder statements.
a126746 is described below

commit a126746f4e28d2361184bd948895ab00e1be1617
Author: Pascal Schumacher <pa...@gmx.net>
AuthorDate: Tue Sep 11 23:35:01 2018 +0200

    Fix syntax of some log with placeholder statements.
---
 .../component/braintree/TransactionGatewayIntegrationTest.java      | 6 +++---
 .../src/main/java/org/apache/camel/component/mail/MailConsumer.java | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/TransactionGatewayIntegrationTest.java b/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/TransactionGatewayIntegrationTest.java
index 5c7ee03..4756b87 100644
--- a/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/TransactionGatewayIntegrationTest.java
+++ b/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/TransactionGatewayIntegrationTest.java
@@ -192,7 +192,7 @@ public class TransactionGatewayIntegrationTest extends AbstractBraintreeTestSupp
             Result.class);
 
         assertNotNull("Submit For Settlement result", result);
-        LOG.debug("Transaction submitted for settlement - id={}" + result.getTarget().getId());
+        LOG.debug("Transaction submitted for settlement - id={}", result.getTarget().getId());
     }
 
     @Test
@@ -225,7 +225,7 @@ public class TransactionGatewayIntegrationTest extends AbstractBraintreeTestSupp
             Result.class);
 
         assertNotNull("Submit For Settlement result", result);
-        LOG.debug("Transaction submitted for settlement - id={}" + result.getTarget().getId());
+        LOG.debug("Transaction submitted for settlement - id={}", result.getTarget().getId());
     }
 
     @Test
@@ -259,7 +259,7 @@ public class TransactionGatewayIntegrationTest extends AbstractBraintreeTestSupp
             Result.class);
 
         assertNotNull("Submit For Settlement result", result);
-        LOG.debug("Transaction submitted for settlement - id={}" + result.getTarget().getId());
+        LOG.debug("Transaction submitted for settlement - id={}", result.getTarget().getId());
     }
 
     @Test
diff --git a/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailConsumer.java b/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailConsumer.java
index acb04a1..64e661c 100644
--- a/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailConsumer.java
+++ b/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailConsumer.java
@@ -162,7 +162,7 @@ public class MailConsumer extends ScheduledBatchPollingConsumer {
             try {
                 store.close();
             } catch (Exception e) {
-                LOG.debug("Could not disconnect from {}: " + getEndpoint().getConfiguration().getMailStoreLogInformation() + ". This exception is ignored.", e);
+                LOG.debug("Could not disconnect from {}. This exception is ignored.", getEndpoint().getConfiguration().getMailStoreLogInformation(), e);
             }
             store = null;
             folder = null;