diff options
| author | mo khan <mo@mokhan.ca> | 2025-05-02 16:05:53 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-05-02 16:05:53 -0600 |
| commit | a3d5ee1225e2ce0b6cf3b90525a6876ca8f5ef8c (patch) | |
| tree | 429faf79855a2614b4c18bb286f94f474caf7e5c /cmd/authzd | |
| parent | 649b71d7fd2d6768460a37ed0d9e6ce7a1202a4f (diff) | |
refactor: connect logging to http requests
Diffstat (limited to 'cmd/authzd')
| -rw-r--r-- | cmd/authzd/main.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/authzd/main.go b/cmd/authzd/main.go index fbe89e22..a18c437b 100644 --- a/cmd/authzd/main.go +++ b/cmd/authzd/main.go @@ -2,14 +2,15 @@ package main import ( "fmt" + "log" "net/http" "github.com/xlgmokha/x/pkg/env" - "gitlab.com/gitlab-org/software-supply-chain-security/authorization/authz.d/pkg/rpc" + "gitlab.com/gitlab-org/software-supply-chain-security/authorization/authz.d/app" ) func main() { bindAddr := env.Fetch("BIND_ADDR", "localhost:8080") fmt.Printf("Listening on %v\n", bindAddr) - http.ListenAndServe(bindAddr, rpc.New()) + log.Fatal(http.ListenAndServe(bindAddr, app.New())) } |
