You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by jm...@apache.org on 2018/01/06 00:21:03 UTC
[incubator-plc4x] 03/03: log exception
This is an automated email from the ASF dual-hosted git repository.
jmclean pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-plc4x.git
commit 4383c3883340e84c446d8810c8ab957d2fe93cdf
Author: Justin Mclean <jm...@apache.org>
AuthorDate: Sat Jan 6 11:20:52 2018 +1100
log exception
---
.../s7/src/test/java/org/apache/plc4x/java/s7/S7PlcReaderSample.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plc4j/protocols/s7/src/test/java/org/apache/plc4x/java/s7/S7PlcReaderSample.java b/plc4j/protocols/s7/src/test/java/org/apache/plc4x/java/s7/S7PlcReaderSample.java
index 9415179..0780172 100644
--- a/plc4j/protocols/s7/src/test/java/org/apache/plc4x/java/s7/S7PlcReaderSample.java
+++ b/plc4j/protocols/s7/src/test/java/org/apache/plc4x/java/s7/S7PlcReaderSample.java
@@ -90,7 +90,7 @@ public class S7PlcReaderSample {
}
// Catch any exception or the application won't be able to finish if something goes wrong.
catch (Exception e) {
- e.printStackTrace();
+ logger.error("S7 PLC reader sample", e);
}
// The application would cleanly terminate after several seconds ... this just speeds things up.
System.exit(0);
--
To stop receiving notification emails like this one, please contact
"commits@plc4x.apache.org" <co...@plc4x.apache.org>.