Skip to content

Commit 87bc0c0

Browse files
committed
SCFF-36 changed the call to send to sumo at the end of the loop
1 parent 858a2e7 commit 87bc0c0

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

sumoCFFirehose/sumoLogicAppender.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,14 @@ func (s *SumoLogicAppender) Start() {
4343
timer = time.Now() //reset timer
4444
if s.logEventsInCurrentBuffer == s.eventsBatchSize { //if buffer is full, send logs to sumo
4545
logging.Trace.Println("Batch Size complete")
46-
s.SendToSumo(s.logStringToSend)
4746
break
4847
} else if time.Since(timer).Seconds() >= 10 { // else if timer is up, send existing logs to sumo
4948
logging.Trace.Println("Sending current batch of logs after timer exceeded limit")
50-
s.SendToSumo(s.logStringToSend)
51-
timer = time.Now() //reset timer
5249
break
5350
}
5451
}
52+
s.SendToSumo(s.logStringToSend)
53+
timer = time.Now() //reset timer
5554
}
5655
}
5756

0 commit comments

Comments
 (0)