about summary refs log tree commit diff stats
path: root/searchix.go
diff options
context:
space:
mode:
authorAlan Pearce2024-05-15 18:46:42 +0200
committerAlan Pearce2024-05-15 18:46:42 +0200
commit121ec2b445636cd3acb59391e1b241abfe2954a5 (patch)
treea21caefa0890ab042283dc790a61ec06c42e9d40 /searchix.go
parent32b97fce7bf2343162bef1c7dd355410010c393b (diff)
downloadsearchix-121ec2b445636cd3acb59391e1b241abfe2954a5.tar.lz
searchix-121ec2b445636cd3acb59391e1b241abfe2954a5.tar.zst
searchix-121ec2b445636cd3acb59391e1b241abfe2954a5.zip
feat: print clickable URL on startup in dev mode
Diffstat (limited to 'searchix.go')
-rw-r--r--searchix.go4
1 files changed, 4 insertions, 0 deletions
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: