[camel] branch master updated (148156e -> 81821be)

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[camel] branch master updated (148156e -> 81821be)

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

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


    from 148156e  Fix broken external links in component documentation
     new 08c5c41  camel-smpp: SmppConnectionFactory keep cause when constructing new Exceptions
     new 81821be  camel-smpp: SmppBinding: minimal corrections to debug level logging

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../src/main/java/org/apache/camel/component/smpp/SmppBinding.java    | 4 ++--
 .../java/org/apache/camel/component/smpp/SmppConnectionFactory.java   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

Reply | Threaded
Open this post in threaded view
|

[camel] 01/02: camel-smpp: SmppConnectionFactory keep cause when constructing new Exceptions

pascalschumacher
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

commit 08c5c413ac8152af423c337c634148444e144e5f
Author: Pascal Schumacher <[hidden email]>
AuthorDate: Fri Aug 10 18:22:40 2018 +0200

    camel-smpp: SmppConnectionFactory keep cause when constructing new Exceptions
---
 .../java/org/apache/camel/component/smpp/SmppConnectionFactory.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppConnectionFactory.java b/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppConnectionFactory.java
index 76e65fa..113393a 100644
--- a/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppConnectionFactory.java
+++ b/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppConnectionFactory.java
@@ -111,7 +111,7 @@ public final class SmppConnectionFactory implements ConnectionFactory {
 
             return new SocketConnection(socket);
         } catch (Exception e) {
-            throw new IOException(e.getMessage());
+            throw new IOException(e.getMessage(), e);
         }
     }
 
@@ -179,7 +179,7 @@ public final class SmppConnectionFactory implements ConnectionFactory {
             throw re;
         } catch (Exception e) {
             closeSocket(socket);
-            throw new RuntimeException("SmppConnectionFactory: " + e.getMessage());
+            throw new RuntimeException("SmppConnectionFactory: " + e.getMessage(), e);
         }
     }
 

Reply | Threaded
Open this post in threaded view
|

[camel] 02/02: camel-smpp: SmppBinding: minimal corrections to debug level logging

pascalschumacher
In reply to this post by pascalschumacher
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

commit 81821be9900516552d5a8fa2342509defdefdfab
Author: Pascal Schumacher <[hidden email]>
AuthorDate: Fri Aug 10 18:27:36 2018 +0200

    camel-smpp: SmppBinding: minimal corrections to debug level logging
---
 .../src/main/java/org/apache/camel/component/smpp/SmppBinding.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppBinding.java b/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppBinding.java
index aa97614..36089fa 100644
--- a/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppBinding.java
+++ b/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppBinding.java
@@ -203,10 +203,10 @@ public class SmppBinding {
                         optParams.put(valueOfTag.toString(), null);
                     }
                 } else {
-                    LOG.debug("Skipping optional parameter with tag {} because it was not recogized", optPara.tag);
+                    LOG.debug("Skipping optional parameter with tag {} because it was not recognized", optPara.tag);
                 }
             } catch (IllegalArgumentException e) {
-                LOG.debug("Skipping optional parameter with tag {} due " + e.getMessage(), optPara.tag);
+                LOG.debug("Skipping optional parameter with tag {} due to {}", optPara.tag, e.getMessage());
             }
         }