From 5573c4b7f7495f6e6cbb899cce8f8fa90425b01c Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 9 May 2024 20:17:19 +0200 Subject: refactor: clean up flags and environment variables --- serve/main.go | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'serve') diff --git a/serve/main.go b/serve/main.go index 5c68cc5..9ba2113 100644 --- a/serve/main.go +++ b/serve/main.go @@ -4,7 +4,6 @@ import ( "fmt" "log" "log/slog" - "net/url" "os" "os/signal" "sync" @@ -15,11 +14,6 @@ import ( "github.com/pkg/errors" ) -var ( - CommitSHA string - ShortSHA string -) - func main() { runtimeConfig := server.Config{} help, err := conf.Parse("", &runtimeConfig) @@ -56,10 +50,6 @@ func main() { defer wg.Done() sErr <- sv.Start() }() - if !runtimeConfig.InDevServer { - url, _ := url.Parse("http://" + sv.Addr) - log.Printf("server listening on %s", url.String()) - } err = <-sErr if err != nil { -- cgit 1.4.1