Skip to content

Commit

Permalink
removed error printing for the .env file
Browse files Browse the repository at this point in the history
  • Loading branch information
yairsimantov20 committed Dec 24, 2023
1 parent f763647 commit bc5ceb6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package config
import (
"flag"
"github.com/joho/godotenv"
"k8s.io/klog/v2"
)

var KafkaConfig = &KafkaConfiguration{}
Expand All @@ -12,10 +11,7 @@ var PollingListenerRate uint
var ApplicationConfig = &ApplicationConfiguration{}

func Init() {
e := godotenv.Load()
if e != nil {
klog.Warningf("Error loading .env file: %s", e.Error())
}
_ = godotenv.Load()
// Kafka listener Configuration
NewString(&KafkaConfig.Brokers, "event-listener-brokers", "localhost:9092", "Kafka event listener brokers")
NewString(&KafkaConfig.SecurityProtocol, "event-listener-security-protocol", "plaintext", "Kafka event listener security protocol")
Expand Down

0 comments on commit bc5ceb6

Please sign in to comment.