Skip to content

Commit

Permalink
fixed conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
adubovikov committed Aug 13, 2024
1 parent 1d5262b commit 04b25db
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions publish/hep.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"net"
"os"
"runtime/debug"
"strconv"
"strings"
"time"
"unicode"
Expand Down Expand Up @@ -153,7 +152,7 @@ func (h *HEPOutputer) Send(msg []byte) {
for n := range h.addr {

if h.client[n].conn == nil || h.client[n].writer == nil {
logp.Debug("connection is not up, index: ", strconv.Itoa(n))
logp.Debug("connection is not up", fmt.Sprintf("index: %d, Len: %d, once: %v", n, len(h.addr), onceSent))
if config.Cfg.HEPBufferEnable && (!onceSent && n == (len(h.addr)-1)) {
h.copyHEPbufftoFile(msg)
}
Expand Down

0 comments on commit 04b25db

Please sign in to comment.