diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2019-09-18 18:01:32 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2019-09-18 18:01:32 -0600 |
commit | 40e05e5a01d50b381fa7a7a472ea38f44518f02c (patch) | |
tree | beb53883008ce4a91aa8e2f3ceed2024a9408f85 /cmd | |
parent | 39d61cad2d27cb7869e7dbf64faad7d90857e944 (diff) |
http: Improve auto HTTP->HTTPS redirects, fix edge cases
See https://caddy.community/t/v2-issues-with-multiple-server-blocks-in-caddyfile-style-config/6206/13?u=matt
Also print pid when using `caddy start`
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/commands.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/commands.go b/cmd/commands.go index 4eda720..2526e45 100644 --- a/cmd/commands.go +++ b/cmd/commands.go @@ -130,7 +130,7 @@ func cmdStart() (int, error) { // when one of the goroutines unblocks, we're done and can exit select { case <-success: - fmt.Println("Successfully started Caddy") + fmt.Printf("Successfully started Caddy (pid=%d)\n", cmd.Process.Pid) case err := <-exit: return caddy.ExitCodeFailedStartup, fmt.Errorf("caddy process exited with error: %v", err) |