From 121ec2b445636cd3acb59391e1b241abfe2954a5 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 15 May 2024 18:46:42 +0200 Subject: feat: print clickable URL on startup in dev mode --- searchix.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/searchix.go b/searchix.go index 79da0e7..8dca470 100644 --- a/searchix.go +++ b/searchix.go @@ -119,6 +119,10 @@ func main() { sErr <- sv.Start() }() + if conf.Web.Environment == "development" { + log.Printf("server listening on %s", conf.Web.BaseURL.String()) + } + err = <-sErr if err != nil { // Error starting or closing listener: -- cgit 1.4.1