From 18332df358fdad0f4fcab25e3a6470c1f3c20a5e Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Thu, 17 Mar 2016 17:58:40 -0600 Subject: [PATCH] Refactor output out of Start() --- caddy/caddy.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/caddy/caddy.go b/caddy/caddy.go index da6975496..9e5fcf3c9 100644 --- a/caddy/caddy.go +++ b/caddy/caddy.go @@ -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,