Skip to content

Commit

Permalink
move some very verbose log messages to info
Browse files Browse the repository at this point in the history
  • Loading branch information
stephane-airbyte committed Feb 26, 2024
1 parent 55ac489 commit 942a0f2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public AirbyteMessage saveState(final Map<String, String> offset, final SchemaHi

final JsonNode asJson = Jsons.jsonNode(state);

LOGGER.info("debezium state: {}", asJson);
LOGGER.debug("debezium state: {}", asJson);

final CdcState cdcState = new CdcState().withState(asJson);
stateManager.getCdcStateManager().setCdcState(cdcState);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public JsonNode constructInitialDebeziumState(final Properties properties,
assert Objects.nonNull(schemaHistory.schema());

final JsonNode asJson = serialize(offset, schemaHistory);
LOGGER.info("Initial Debezium state constructed: {}", asJson);
LOGGER.debug("Initial Debezium state constructed: {}", asJson);

if (asJson.get(MssqlCdcStateConstants.MSSQL_DB_HISTORY).asText().isBlank()) {
throw new RuntimeException("Schema history snapshot returned empty history.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ protected AirbyteMessage computeNext() {
} else if (!hasEmittedFinalState) {
hasEmittedFinalState = true;
final AirbyteStateMessage finalStateMessage = stateManager.createFinalStateMessage(pair, streamStateForIncrementalRun);
LOGGER.info("Finished initial sync of stream {}, Emitting final state, state is {}", pair, finalStateMessage);
LOGGER.info("Finished initial sync of stream {}, Emitting final state", pair);
LOGGER.debug("state is {}", finalStateMessage);
return new AirbyteMessage()
.withType(Type.STATE)
.withState(finalStateMessage);
Expand Down

0 comments on commit 942a0f2

Please sign in to comment.