This is an automated email from the ASF dual-hosted git repository.
sruehl pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git
The following commit(s) were added to refs/heads/develop by this push:
new 07e93ab plc4j: fix stack leak
07e93ab is described below
commit 07e93abce84414258d8e6c88663f932b2ae040d1
Author: Sebastian Rühl <[email protected]>
AuthorDate: Mon Jun 7 17:27:26 2021 +0200
plc4j: fix stack leak
---
.../src/main/java/org/apache/plc4x/kafka/Plc4xSourceTask.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git
a/plc4j/integrations/apache-kafka/src/main/java/org/apache/plc4x/kafka/Plc4xSourceTask.java
b/plc4j/integrations/apache-kafka/src/main/java/org/apache/plc4x/kafka/Plc4xSourceTask.java
index eb461cd..715fc7a 100644
---
a/plc4j/integrations/apache-kafka/src/main/java/org/apache/plc4x/kafka/Plc4xSourceTask.java
+++
b/plc4j/integrations/apache-kafka/src/main/java/org/apache/plc4x/kafka/Plc4xSourceTask.java
@@ -221,13 +221,12 @@ public class Plc4xSourceTask extends SourceTask {
topic,
KEY_SCHEMA, key,
recordSchema, recordStruct
- );
+ );
// Add the new source-record to the buffer.
buffer.add(sourceRecord);
} catch (Exception e) {
- log.error("Error while parsing returned values");
- e.printStackTrace();
+ log.error("Error while parsing returned values", e);
}
}, triggerCollector);
scraper.start();