Skip to content

Commit 24ee0ad

Browse files
authored
Fixed bug where invalid Kafka servers configuration produced an empty error log (#306)
1 parent f934155 commit 24ee0ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/kafka-watcher/cmd/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ func main() {
7474
logrus.WithError(err).Panic("could not initialize log file watcher")
7575
}
7676
case config.KubernetesLogReadMode:
77-
kafkaServers, parseErr := parseKafkaServers(viper.GetStringSlice(config.KafkaServersKey))
77+
kafkaServers, err := parseKafkaServers(viper.GetStringSlice(config.KafkaServersKey))
7878
logrus.Infof("Reading from k8s logs - %d servers", len(kafkaServers))
7979

80-
if parseErr != nil {
80+
if err != nil {
8181
logrus.WithError(err).Panic("could not parse Kafka servers list")
8282
}
8383

0 commit comments

Comments
 (0)