Skip to content

Commit

Permalink
chore: update logging
Browse files Browse the repository at this point in the history
  • Loading branch information
dhrudevalia committed Sep 3, 2024
1 parent 4618fe6 commit d753983
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ class Neo4jSinkConnector: SinkConnector() {
val migratedConfig = ConfigurationMigrator(settings).migrateToV51()
val mapper = ObjectMapper()
val jsonConfig = mapper.writeValueAsString(migratedConfig)
log.info("Migrated Neo4j Sink Connector '{}' configuration to v5.1 connector format: {}", settings["name"], jsonConfig)
log.info(
"The migrated settings for 5.1 version of Neo4j Sink Connector '{}' is: `{}`",
settings["name"],
jsonConfig
)
}

override fun version(): String {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,11 @@ class Neo4jSourceService(private val config: Neo4jSourceConnectorConfig, offsetS

val mapper = ObjectMapper()
val jsonConfig = mapper.writeValueAsString(migratedConfig)
log.info("Migrated Neo4j Source Connector '{}' configuration to v5.1 connector format: {}", originalConfig["name"], jsonConfig)
log.info(
"The migrated settings for 5.1 version of Neo4j Source Connector '{}' is: `{}`",
originalConfig["name"],
jsonConfig
)

log.info("Neo4j Source Service closed successfully")
}
Expand Down

0 comments on commit d753983

Please sign in to comment.