You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by sr...@apache.org on 2018/01/12 11:14:40 UTC

[incubator-plc4x] 03/06: log expection on connection close failure

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

sruehl pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-plc4x.git

commit 8940cb455da3d1508759f424bf50d008a93742dc
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Fri Jan 12 12:03:30 2018 +0100

    log expection on connection close failure
---
 .../src/main/java/org/apache/plc4x/camel/PLC4XProducer.java            | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/integrations/apache-camel/src/main/java/org/apache/plc4x/camel/PLC4XProducer.java b/integrations/apache-camel/src/main/java/org/apache/plc4x/camel/PLC4XProducer.java
index af5df7e..891de5b 100644
--- a/integrations/apache-camel/src/main/java/org/apache/plc4x/camel/PLC4XProducer.java
+++ b/integrations/apache-camel/src/main/java/org/apache/plc4x/camel/PLC4XProducer.java
@@ -107,7 +107,8 @@ public class PLC4XProducer extends DefaultAsyncProducer {
         }
         try {
             plcConnection.close();
-        } catch (Exception ignore) {
+        } catch (Exception e) {
+            log.warn("Could not close {}", plcConnection, e);
         }
         super.doStop();
     }

-- 
To stop receiving notification emails like this one, please contact
"commits@plc4x.apache.org" <co...@plc4x.apache.org>.