Skip to content

Commit 30e4766

Browse files
authored
---
yaml --- r: 5471 b: refs/heads/master c: ca51fe9 h: refs/heads/master i: 5469: 8b60006 5467: 880abda 5463: c16080d 5455: 414cb8e 5439: 06edfa0
1 parent ded6577 commit 30e4766

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 48b324e5b9f8127fde8811b15104a42581c05df0
2+
refs/heads/master: ca51fe908b837b8b7fcc8dad171a96070a6e15b1
33
refs/heads/travis: dae77e558b884bc1b165155482d76c8e40b0fca4
44
refs/heads/gh-pages: 4936f6d1c43be1ab76229d2743bae07f4b4124b3
55
refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444

trunk/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/spi/v1/Publisher.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)