about summary refs log tree commit diff stats
path: root/serve
diff options
context:
space:
mode:
authorAlan Pearce2024-05-09 20:17:19 +0200
committerAlan Pearce2024-05-09 20:17:19 +0200
commit5573c4b7f7495f6e6cbb899cce8f8fa90425b01c (patch)
tree8a65b5aad4c7a62669ce1a10ad07b43476218f50 /serve
parent9389b7dd633f6cc4653e6709a972cc7d6ab9e48f (diff)
downloadsearchix-5573c4b7f7495f6e6cbb899cce8f8fa90425b01c.tar.lz
searchix-5573c4b7f7495f6e6cbb899cce8f8fa90425b01c.tar.zst
searchix-5573c4b7f7495f6e6cbb899cce8f8fa90425b01c.zip
refactor: clean up flags and environment variables
Diffstat (limited to 'serve')
-rw-r--r--serve/main.go10
1 files changed, 0 insertions, 10 deletions
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 {