Skip to content

Commit 713b64a

Browse files
author
yanxi0227
committed
add log
1 parent 06cd6bf commit 713b64a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

kafka09/kafka09-source/src/main/java/com/dtstack/flink/sql/source/kafka/CustomerJsonDeserialization.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public Row deserialize(byte[] message) throws IOException {
144144
} catch (Throwable t) {
145145
//add metric of dirty data
146146
if (dirtyDataCounter.getCount()%rowLenth == 0){
147-
LOG.info(objectMapper.readTree(message).toString());
147+
LOG.info("dirtyData: " + new String(message));
148148
}
149149
dirtyDataCounter.inc();
150150
return null;

kafka10/kafka10-source/src/main/java/com/dtstack/flink/sql/source/kafka/CustomerJsonDeserialization.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public Row deserialize(byte[] message) throws IOException {
144144
} catch (Throwable t) {
145145
//add metric of dirty data
146146
if (dirtyDataCounter.getCount()%rowLenth == 0){
147-
LOG.info(objectMapper.readTree(message).toString());
147+
LOG.info("dirtyData: " + new String(message));
148148
}
149149
dirtyDataCounter.inc();
150150
return null;

kafka11/kafka11-source/src/main/java/com/dtstack/flink/sql/source/kafka/CustomerJsonDeserialization.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public Row deserialize(byte[] message) throws IOException {
147147
} catch (Throwable t) {
148148
//add metric of dirty data
149149
if (dirtyDataCounter.getCount()%rowLenth == 0){
150-
LOG.info(objectMapper.readTree(message).toString());
150+
LOG.info("dirtyData: " + new String(message));
151151
}
152152
dirtyDataCounter.inc();
153153
return null;

0 commit comments

Comments
 (0)