Ensure listen port log entry displays before cache import
This commit is contained in:
parent
88a8aff135
commit
9a2bf05790
|
@ -12,7 +12,7 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
ReleaseVersion string = "0.96.0"
|
||||
ReleaseVersion string = "0.96.1"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
18
cmd/web.go
18
cmd/web.go
|
@ -440,6 +440,15 @@ func ServePage(args []string) error {
|
|||
return ErrNoMediaFound
|
||||
}
|
||||
|
||||
listenHost := net.JoinHostPort(Bind, strconv.Itoa(Port))
|
||||
|
||||
if Verbose {
|
||||
fmt.Printf("%s | SERVE: Listening on %s...\n",
|
||||
time.Now().Format(logDate),
|
||||
listenHost,
|
||||
)
|
||||
}
|
||||
|
||||
cache := &fileCache{
|
||||
mutex: sync.RWMutex{},
|
||||
list: []string{},
|
||||
|
@ -457,15 +466,6 @@ func ServePage(args []string) error {
|
|||
|
||||
mux := httprouter.New()
|
||||
|
||||
listenHost := net.JoinHostPort(Bind, strconv.Itoa(Port))
|
||||
|
||||
if Verbose {
|
||||
fmt.Printf("%s | SERVE: Listening on %s...\n",
|
||||
time.Now().Format(logDate),
|
||||
listenHost,
|
||||
)
|
||||
}
|
||||
|
||||
srv := &http.Server{
|
||||
Addr: listenHost,
|
||||
Handler: mux,
|
||||
|
|
Loading…
Reference in New Issue