Skip to content

Commit

Permalink
Merge pull request #795 from Altinity/794-change-logging-level-of-str…
Browse files Browse the repository at this point in the history
…uct-empty-not-a-valid-cdc-record-+-record-to-info

Changed logging level to info for STRUCT EMPTY not a valid CDC record
  • Loading branch information
subkanthi authored Sep 9, 2024
2 parents 73c85cc + 3ea58ed commit ab888d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions sink-connector-lightweight/docker/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
additivity="false">
<AppenderRef ref="console"/>
</Logger>-->
<Logger name="io.debezium" level="ERROR"
additivity="false">
<AppenderRef ref="console"/>
</Logger>
<Logger name="com.clickhouse" level="ERROR"
additivity="false">
<AppenderRef ref="console"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ private ClickHouseStruct processEveryChangeRecord(Properties props, ChangeEvent<
Struct struct = (Struct) sr.value();

if (struct == null) {
log.warn(String.format("STRUCT EMPTY - not a valid CDC record + Record(%s)", record.toString()));
log.debug(String.format("STRUCT EMPTY - not a valid CDC record + Record(%s)", record.toString()));
return null;
}
if (struct.schema() == null) {
Expand Down

0 comments on commit ab888d7

Please sign in to comment.