all repos — searchix @ 121ec2b445636cd3acb59391e1b241abfe2954a5

Search engine for NixOS, nix-darwin, home-manager and NUR users

feat: print clickable URL on startup in dev mode
Alan Pearce alan@alanpearce.eu
Wed, 15 May 2024 18:46:42 +0200
commit

121ec2b445636cd3acb59391e1b241abfe2954a5

parent

32b97fce7bf2343162bef1c7dd355410010c393b

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M searchix.gosearchix.go
@@ -119,6 +119,10 @@ defer wg.Done() 		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: