Skip to content

Commit

Permalink
fix(connector): don't log config/props that may contain sensitive inf…
Browse files Browse the repository at this point in the history
…ormation (#17079)
  • Loading branch information
zwang28 committed Jun 4, 2024
1 parent 7282e02 commit f7069a4
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 10 deletions.
2 changes: 0 additions & 2 deletions src/connector/src/sink/kafka.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,6 @@ impl KafkaConfig {
pub(crate) fn set_client(&self, c: &mut rdkafka::ClientConfig) {
self.rdkafka_properties_common.set_client(c);
self.rdkafka_properties_producer.set_client(c);

tracing::info!("kafka client starts with: {:?}", c);
}
}

Expand Down
6 changes: 1 addition & 5 deletions src/connector/src/sink/remote.rs
Original file line number Diff line number Diff line change
Expand Up @@ -680,11 +680,7 @@ impl RemoteCoordinator {
.start_sink_coordinator_stream(param.clone())
.await?;

tracing::trace!(
"{:?} RemoteCoordinator started with properties: {:?}",
R::SINK_NAME,
&param.properties
);
tracing::trace!("{:?} RemoteCoordinator started", R::SINK_NAME,);

Ok(RemoteCoordinator { stream_handle })
}
Expand Down
2 changes: 0 additions & 2 deletions src/connector/src/source/kafka/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,6 @@ impl KafkaProperties {
pub fn set_client(&self, c: &mut rdkafka::ClientConfig) {
self.rdkafka_properties_common.set_client(c);
self.rdkafka_properties_consumer.set_client(c);

tracing::info!("kafka client starts with: {:?}", c);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/connector/src/source/reader/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ impl SourceReader {
} else {
let to_reader_splits = splits.into_iter().map(|split| vec![split]);
try_join_all(to_reader_splits.into_iter().map(|splits| {
tracing::debug!(?splits, ?prop, "spawning connector split reader");
tracing::debug!(?splits, "spawning connector split reader");
let props = prop.clone();
let data_gen_columns = data_gen_columns.clone();
let parser_config = parser_config.clone();
Expand Down

0 comments on commit f7069a4

Please sign in to comment.