summaryrefslogtreecommitdiff
path: root/modules/logging
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2023-05-04 16:30:34 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2023-05-04 16:30:34 -0600
commitcdce452edc5e9cf9127789a868d01864d3276af5 (patch)
tree26d704c4bbad0d8e6c6b489b900a48d83478c343 /modules/logging
parentf3e8b9d95fefc81c347ec38d913c9ccd9edb626a (diff)
logging: Actually honor the SoftStart parameter
Diffstat (limited to 'modules/logging')
-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)