@@ -147,17 +147,17 @@ func (g *GoChannel) sendMessage(topic string, message *message.Message) (<-chan
147147 }
148148
149149 go func (subscribers []* subscriber ) {
150- g .logger .Info ("GoChannel #1" , logFields )
150+ g .logger .Trace ("GoChannel #1" , logFields )
151151 wg := & sync.WaitGroup {}
152152
153153 for i := range subscribers {
154154 subscriber := subscribers [i ]
155155
156- g .logger .Info ("GoChannel #2" , logFields )
156+ g .logger .Trace ("GoChannel #2" , logFields )
157157
158158 wg .Add (1 )
159159 go func () {
160- g .logger .Info ("GoChannel #3" , logFields )
160+ g .logger .Trace ("GoChannel #3" , logFields )
161161 subscriber .sendMessageToSubscriber (message , logFields )
162162 wg .Done ()
163163 }()
@@ -346,19 +346,19 @@ func (s *subscriber) Close() {
346346
347347func (s * subscriber ) sendMessageToSubscriber (msg * message.Message , logFields watermill.LogFields ) {
348348
349- s .logger .Info ("GoChannel #4" , logFields )
349+ s .logger .Trace ("GoChannel #4" , logFields )
350350
351351 s .sending .Lock ()
352352 defer s .sending .Unlock ()
353353
354- s .logger .Info ("GoChannel #5" , logFields )
354+ s .logger .Trace ("GoChannel #5" , logFields )
355355
356356 ctx , cancelCtx := context .WithCancel (s .ctx )
357357 defer cancelCtx ()
358358
359359SendToSubscriber:
360360 for {
361- s .logger .Info ("GoChannel #6" , logFields )
361+ s .logger .Trace ("GoChannel #6" , logFields )
362362 // copy the message to prevent ack/nack propagation to other consumers
363363 // also allows to make retries on a fresh copy of the original message
364364 msgToSend := msg .Copy ()
@@ -371,7 +371,7 @@ SendToSubscriber:
371371 return
372372 }
373373
374- s .logger .Info ("GoChannel #7" , logFields )
374+ s .logger .Trace ("GoChannel #7" , logFields )
375375 select {
376376 case s .outputChannel <- msgToSend :
377377 s .logger .Trace ("Sent message to subscriber" , logFields )
0 commit comments