Skip to content
This repository has been archived by the owner on Sep 22, 2024. It is now read-only.

Commit

Permalink
feat: add better logging for ports and configs
Browse files Browse the repository at this point in the history
  • Loading branch information
buehler committed Jan 3, 2022
1 parent eaa01bf commit 90ee259
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module wirepact.ch/k8s-basic-auth-translator
go 1.16

require (
github.com/WirePact/go-translator v1.0.0
github.com/WirePact/go-translator v1.1.0
github.com/cncf/xds/go v0.0.0-20211216145620-d92e9ce0af51 // indirect
github.com/envoyproxy/go-control-plane v0.10.1
github.com/envoyproxy/protoc-gen-validate v0.6.2 // indirect
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbt
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE=
github.com/WirePact/go-translator v1.0.0 h1:g3o6JbykDgutLjUCWBKG/tOIVRGogjrRnO37Ec480BU=
github.com/WirePact/go-translator v1.0.0/go.mod h1:39V6Z7n5G7o1XbDnPnEI31xyX99x2GGgQIoaU2dgjEY=
github.com/WirePact/go-translator v1.1.0 h1:lbFMmbiSPHdJMPTM5cigeBvSdif+/93VoT5bHVTua6Q=
github.com/WirePact/go-translator v1.1.0/go.mod h1:s3DQy6eqXjfeIfINa+SAe9YJJgzlz8O73FSA2SDgvRM=
github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY=
github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY=
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
Expand Down
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ func main() {
logrus.SetLevel(logrus.InfoLevel)

if os.Getenv("CSV_PATH") != "" {
logrus.Infof("CSV_PATH set to %v, configuring csv repository", os.Getenv("CSV_PATH"))
user_repository.ConfigureCSVRepository(os.Getenv("CSV_PATH"))
}
if os.Getenv("KUBERNETES_SECRET") != "" {
logrus.Infof("KUBERNETES_SECRET set to %v, configuring secret repository", os.Getenv("KUBERNETES_SECRET"))
user_repository.ConfigureKubernetesRepository(os.Getenv("KUBERNETES_SECRET"))
}

Expand All @@ -33,6 +35,7 @@ func main() {
logrus.WithError(err).Fatalln("Could not create translator.")
}

logrus.Infoln("Starting translator.")
server.Start()
}

Expand Down

0 comments on commit 90ee259

Please sign in to comment.