@@ -236,7 +236,7 @@ && hasBundlingBytes()
236236 if (!messagesBundle .isEmpty ()) {
237237 setupDurationBasedPublishAlarm ();
238238 } else if (currentAlarmFuture != null ) {
239- logger .log (Level .INFO , "Cancelling alarm" );
239+ logger .log (Level .FINER , "Cancelling alarm, no more messages " );
240240 if (activeAlarm .getAndSet (false )) {
241241 currentAlarmFuture .cancel (false );
242242 }
@@ -248,7 +248,7 @@ && hasBundlingBytes()
248248 messagesWaiter .incrementPendingMessages (1 );
249249
250250 if (bundleToSend != null ) {
251- logger .log (Level .INFO , "Scheduling a bundle for immediate sending." );
251+ logger .log (Level .FINER , "Scheduling a bundle for immediate sending." );
252252 final OutstandingBundle finalBundleToSend = bundleToSend ;
253253 executor .execute (
254254 new Runnable () {
@@ -263,7 +263,7 @@ public void run() {
263263 // be sent in its own bundle immediately.
264264 if (hasBundlingBytes () && messageSize >= getMaxBundleBytes ()) {
265265 logger .log (
266- Level .INFO , "Message exceeds the max bundle bytes, scheduling it for immediate send." );
266+ Level .FINER , "Message exceeds the max bundle bytes, scheduling it for immediate send." );
267267 executor .execute (
268268 new Runnable () {
269269 @ Override
@@ -280,13 +280,13 @@ public void run() {
280280 private void setupDurationBasedPublishAlarm () {
281281 if (!activeAlarm .getAndSet (true )) {
282282 long delayThresholdMs = getBundlingSettings ().getDelayThreshold ().getMillis ();
283- logger .log (Level .INFO , "Setting up alarm for the next {0} ms." , delayThresholdMs );
283+ logger .log (Level .FINER , "Setting up alarm for the next {0} ms." , delayThresholdMs );
284284 currentAlarmFuture =
285285 executor .schedule (
286286 new Runnable () {
287287 @ Override
288288 public void run () {
289- logger .log (Level .INFO , "Sending messages based on schedule." );
289+ logger .log (Level .FINER , "Sending messages based on schedule." );
290290 activeAlarm .getAndSet (false );
291291 publishAllOutstanding ();
292292 }
0 commit comments