Skip to content

Commit

Permalink
[Misc] Update other components to use JSON logger
Browse files Browse the repository at this point in the history
Switch server, web-hook and deprecated mtx-job to also use JSON logger
  • Loading branch information
Pavan-SAP committed May 24, 2024
1 parent ae677dc commit ef312e8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/mtx-job/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ type OAuthResponse struct {
}

func main() {
klog.SetLogger(util.GetLogger())
os.Exit(execute())
}

Expand Down
1 change: 1 addition & 0 deletions cmd/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
)

func main() {
klog.SetLogger(util.GetLogger())
subHandler := getSubscriptionHandler()
http.HandleFunc("/provision/", subHandler.HandleRequest)

Expand Down
1 change: 1 addition & 0 deletions cmd/web-hooks/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ type ServerParameters struct {
var parameters ServerParameters

func main() {
klog.SetLogger(util.GetLogger())
// check env for relevant values
portEnv := os.Getenv("WEBHOOK_PORT")
port := 8443
Expand Down

0 comments on commit ef312e8

Please sign in to comment.