0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00

Refactor output out of Start()

This commit is contained in:
Matthew Holt 2016-03-17 17:58:40 -06:00
parent b9f8c183fa
commit 18332df358

View file

@ -155,6 +155,15 @@ func Start(cdyfile Input) (err error) {
}
startedBefore = true
showInitializationOutput(groupings)
return nil
}
// showInitializationOutput just outputs some basic information about
// what is being served to stdout, as well as any applicable, non-essential
// warnings for the user.
func showInitializationOutput(groupings bindingGroup) {
// Show initialization output
if !Quiet && !IsRestart() {
var checkedFdLimit bool
@ -175,8 +184,6 @@ func Start(cdyfile Input) (err error) {
}
}
}
return nil
}
// startServers starts all the servers in groupings,