summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/logging/netwriter.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/logging/netwriter.go b/modules/logging/netwriter.go
index 954a09b..1939cb7 100644
--- a/modules/logging/netwriter.go
+++ b/modules/logging/netwriter.go
@@ -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)