@marcel91200 / caddy Mirror · read-only / commits / cdce452e
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 13, 03:00 UTC

logging: Actually honor the SoftStart parameter

Matthew Holt committed May 4, 2023 at 16:30 UTC cdce452edc5e9cf9127789a868d01864d3276af5
1 file changed +3
modules/logging/netwriter.go
+3
@@ -97,6 +97,9 @@ func (nw NetWriter) OpenWriter() (io.WriteCloser, error) {
97 }
98 conn, err := reconn.dial()
99 if err != nil {
100 + if !nw.SoftStart {
101 + return nil, err
102 + }
103 // don't block config load if remote is down or some other external problem;
104 // we can dump logs to stderr for now (see issue #5520)
105 fmt.Fprintf(os.Stderr, "[ERROR] net log writer failed to connect: %v (will retry connection and print errors here in the meantime)\n", err)