Skip to content

Commit

Permalink
fix LOG_CONNECTOR_MESSAGES when source has no state (#20606)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroslopez authored Dec 16, 2022
1 parent e92b47f commit 7dc3004
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,11 @@ private void logInitialStateAsJSON(final WorkerSourceConfig sourceConfig) {
return;
}

if (sourceConfig.getState() == null) {
LOGGER.info("source starting state | empty");
return;
}

LOGGER.info("source starting state | " + Jsons.serialize(sourceConfig.getState().getState()));
}

Expand Down

0 comments on commit 7dc3004

Please sign in to comment.