mirror of
https://github.com/caddyserver/caddy.git
synced 2025-06-01 20:54:26 -04:00
Refactor output out of Start()
This commit is contained in:
parent
b9f8c183fa
commit
18332df358
@ -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…
x
Reference in New Issue
Block a user