diff options
author | Alan Pearce | 2024-05-15 18:46:42 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-15 18:46:42 +0200 |
commit | 121ec2b445636cd3acb59391e1b241abfe2954a5 (patch) | |
tree | a21caefa0890ab042283dc790a61ec06c42e9d40 | |
parent | 32b97fce7bf2343162bef1c7dd355410010c393b (diff) | |
download | searchix-121ec2b445636cd3acb59391e1b241abfe2954a5.tar.lz searchix-121ec2b445636cd3acb59391e1b241abfe2954a5.tar.zst searchix-121ec2b445636cd3acb59391e1b241abfe2954a5.zip |
feat: print clickable URL on startup in dev mode
-rw-r--r-- | searchix.go | 4 |
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: |