Manager: log own URLs at startup
Log the URLs at which the Manager thinks it should be reachable, at startup.
This commit is contained in:
parent
e91623557a
commit
bf5bf86f03
@ -137,10 +137,14 @@ 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.
|
||||
urls, err := own_url.AvailableURLs("http", listen)
|
||||
if err != nil {
|
||||
log.Fatal().Err(err).Msg("unable to figure out my own URL")
|
||||
}
|
||||
for _, url := range urls {
|
||||
log.Info().Stringer("url", &url).Msg("possble URL at which to reach Flamenco Manager")
|
||||
}
|
||||
|
||||
ssdp := makeAutoDiscoverable(urls)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user