Skip to content
This repository was archived by the owner on Dec 1, 2018. It is now read-only.

Commit c257c37

Browse files
authored
Merge pull request #1950 from ryarnyah/fix/kafka-sink-func-name
[Kafka Sink] Clean function name
2 parents 4e75f15 + d31a48e commit c257c37

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

common/kafka/kafka.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,7 @@ func getSASLConfiguration(opts url.Values) (string, string, bool, error) {
170170
return user, password, true, nil
171171
}
172172

173-
// usageKafkaclient return sink options with *** for password option.
174-
func usageKafkaclient(values url.Values) string {
173+
func getOptionsWithoutSecrets(values url.Values) string {
175174
var password []string
176175
if len(values["password"]) != 0 {
177176
password = values["password"]
@@ -187,7 +186,7 @@ func NewKafkaClient(uri *url.URL, topicType string) (KafkaClient, error) {
187186
if err != nil {
188187
return nil, fmt.Errorf("failed to parse url's query string: %s", err)
189188
}
190-
glog.V(3).Info(usageKafkaclient(opts))
189+
glog.V(3).Info(getOptionsWithoutSecrets(opts))
191190

192191
topic, err := getTopic(opts, topicType)
193192
if err != nil {

0 commit comments

Comments
 (0)