From a3d5ee1225e2ce0b6cf3b90525a6876ca8f5ef8c Mon Sep 17 00:00:00 2001 From: mo khan Date: Fri, 2 May 2025 16:05:53 -0600 Subject: refactor: connect logging to http requests --- cmd/authzd/main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cmd/authzd') 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())) } -- cgit v1.2.3