Manager: log "own URLs" last, to make them more visible
Logging the URLs at which the Manager can be reached as the last thing when starting up, in the hope that this makes them more noticable and inviting to actually visit.
This commit is contained in:
parent
858089a1c3
commit
3206842fe8
@ -138,12 +138,11 @@ func runFlamencoManager() bool {
|
||||
_, port, _ := net.SplitHostPort(listen)
|
||||
log.Info().Str("port", port).Msg("listening")
|
||||
|
||||
// Find our URLs, and log them for the user's convenience.
|
||||
// Find our URLs.
|
||||
urls, err := own_url.AvailableURLs("http", listen)
|
||||
if err != nil {
|
||||
log.Fatal().Err(err).Msg("unable to figure out my own URL")
|
||||
}
|
||||
logURLs(urls)
|
||||
|
||||
ssdp := makeAutoDiscoverable(urls)
|
||||
|
||||
@ -235,6 +234,12 @@ func runFlamencoManager() bool {
|
||||
sleepScheduler.Run(mainCtx)
|
||||
}()
|
||||
|
||||
// Log the URLs last, hopefully that makes them more visible / encouraging to go to for users.
|
||||
go func() {
|
||||
time.Sleep(100 * time.Millisecond)
|
||||
logURLs(urls)
|
||||
}()
|
||||
|
||||
// Open a webbrowser, but give the web service some time to start first.
|
||||
if isFirstRun {
|
||||
go openWebbrowser(mainCtx, urls[0])
|
||||
|
Loading…
Reference in New Issue
Block a user