@@ -41,11 +41,11 @@ func (s *SumoLogicAppender) Start() {
4141 s .AppendLogs ()
4242 }
4343 if s .logEventsInCurrentBuffer >= s .eventsBatchSize { //if buffer is full, send logs to sumo
44- logging .Info .Println ("Buffer full " )
44+ logging .Trace .Println ("Batch Size complete " )
4545 s .SendToSumo (s .logStringToSend )
4646
4747 } else if time .Since (timer ).Seconds () >= 10 { // else if timer is up, send existing logs to sumo
48- logging .Info .Println ("timer finished " )
48+ logging .Trace .Println ("Sending current batch of logs after timer exceeded limit " )
4949 s .SendToSumo (s .logStringToSend )
5050 timer = time .Now () //reset timer
5151 }
@@ -75,7 +75,7 @@ func (s *SumoLogicAppender) AppendLogs() {
7575}
7676
7777func (s * SumoLogicAppender ) SendToSumo (log * bytes.Buffer ) {
78- logging .Info .Println ("Sending logs to Sumologic..." )
78+ logging .Trace .Println ("Sending logs to Sumologic..." )
7979 request , err := http .NewRequest ("POST" , s .url , log )
8080 if err != nil {
8181 logging .Error .Printf ("http.NewRequest() error: %v\n " , err )
@@ -89,7 +89,7 @@ func (s *SumoLogicAppender) SendToSumo(log *bytes.Buffer) {
8989 logging .Error .Printf ("http.Do() error: %v\n " , err )
9090 return
9191 } else {
92- logging .Info .Println ("Do(Request) successful" )
92+ logging .Trace .Println ("Do(Request) successful" )
9393 }
9494 s .logEventsInCurrentBuffer = 0 // reset counter
9595 s .logStringToSend = bytes .NewBufferString ("" ) //reset String
0 commit comments