mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-27 06:03:48 +03:00
logging: Actually honor the SoftStart parameter
This commit is contained in:
parent
f3e8b9d95f
commit
cdce452edc
1 changed files with 3 additions and 0 deletions
|
@ -97,6 +97,9 @@ func (nw NetWriter) OpenWriter() (io.WriteCloser, error) {
|
|||
}
|
||||
conn, err := reconn.dial()
|
||||
if err != nil {
|
||||
if !nw.SoftStart {
|
||||
return nil, err
|
||||
}
|
||||
// don't block config load if remote is down or some other external problem;
|
||||
// we can dump logs to stderr for now (see issue #5520)
|
||||
fmt.Fprintf(os.Stderr, "[ERROR] net log writer failed to connect: %v (will retry connection and print errors here in the meantime)\n", err)
|
||||
|
|
Loading…
Reference in a new issue