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:
parent
b9f8c183fa
commit
18332df358
1 changed files with 9 additions and 2 deletions
|
@ -155,6 +155,15 @@ func Start(cdyfile Input) (err error) {
|
||||||
}
|
}
|
||||||
startedBefore = true
|
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
|
// Show initialization output
|
||||||
if !Quiet && !IsRestart() {
|
if !Quiet && !IsRestart() {
|
||||||
var checkedFdLimit bool
|
var checkedFdLimit bool
|
||||||
|
@ -175,8 +184,6 @@ func Start(cdyfile Input) (err error) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// startServers starts all the servers in groupings,
|
// startServers starts all the servers in groupings,
|
||||||
|
|
Loading…
Reference in a new issue