Skip to content

pubsub: make Publisher log less chatty - #1749

Merged
pongad merged 1 commit into
googleapis:masterfrom
pongad:publisher-log-level
Mar 15, 2017
Merged

pubsub: make Publisher log less chatty#1749
pongad merged 1 commit into
googleapis:masterfrom
pongad:publisher-log-level

Conversation

@pongad

@pongad pongad commented Mar 14, 2017

Copy link
Copy Markdown
Contributor

Fixes #1681.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 14, 2017
@coveralls

Copy link
Copy Markdown

Coverage Status

Changes Unknown when pulling b28bffa on pongad:publisher-log-level into ** on GoogleCloudPlatform:master**.

setupDurationBasedPublishAlarm();
} else if (currentAlarmFuture != null) {
logger.log(Level.INFO, "Cancelling alarm");
logger.log(Level.FINER, "Cancelling alarm, no more messages");

This comment was marked as spam.

This comment was marked as spam.

@lesv lesv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jabubake @garrettjonesgoogle @pongad I find I disagree w/ Garrett -- What I'd really want in many of these places is a logOnce primitive, but that's not part of any of the loggers.

setupDurationBasedPublishAlarm();
} else if (currentAlarmFuture != null) {
logger.log(Level.INFO, "Cancelling alarm");
logger.log(Level.FINER, "Cancelling alarm, no more messages");

This comment was marked as spam.


if (bundleToSend != null) {
logger.log(Level.INFO, "Scheduling a bundle for immediate sending.");
logger.log(Level.FINER, "Scheduling a bundle for immediate sending.");

This comment was marked as spam.

if (hasBundlingBytes() && messageSize >= getMaxBundleBytes()) {
logger.log(
Level.INFO, "Message exceeds the max bundle bytes, scheduling it for immediate send.");
Level.FINER, "Message exceeds the max bundle bytes, scheduling it for immediate send.");

This comment was marked as spam.

@Override
public void run() {
logger.log(Level.INFO, "Sending messages based on schedule.");
logger.log(Level.FINER, "Sending messages based on schedule.");

This comment was marked as spam.

if (!activeAlarm.getAndSet(true)) {
long delayThresholdMs = getBundlingSettings().getDelayThreshold().getMillis();
logger.log(Level.INFO, "Setting up alarm for the next {0} ms.", delayThresholdMs);
logger.log(Level.FINER, "Setting up alarm for the next {0} ms.", delayThresholdMs);

This comment was marked as spam.

@garrettjonesgoogle

Copy link
Copy Markdown
Contributor

LGTM, since @lesv thinks FINER works fine for the logging level.

@pongad
pongad merged commit ca51fe9 into googleapis:master Mar 15, 2017
@pongad
pongad deleted the publisher-log-level branch March 15, 2017 00:08
meltsufin pushed a commit that referenced this pull request Dec 22, 2025
* chore(main): release 3.21.2-SNAPSHOT

* chore: generate libraries at Mon Jan 13 17:03:24 UTC 2025

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: cloud-java-bot <cloud-java-bot@google.com>
chingor13 pushed a commit that referenced this pull request Feb 24, 2026
suztomo pushed a commit to suztomo/google-cloud-java that referenced this pull request Mar 11, 2026
* chore(main): release 3.21.2-SNAPSHOT

* chore: generate libraries at Mon Jan 13 17:03:24 UTC 2025

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: cloud-java-bot <cloud-java-bot@google.com>
chingor13 pushed a commit that referenced this pull request Mar 12, 2026
suztomo pushed a commit to suztomo/google-cloud-java that referenced this pull request Mar 23, 2026
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
meltsufin pushed a commit that referenced this pull request Apr 29, 2026
…o v1.125.3 (#1749)

* chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.125.3

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
meltsufin pushed a commit that referenced this pull request May 1, 2026
…o v1.125.3 (#1749)

* chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.125.3

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
meltsufin pushed a commit that referenced this pull request May 2, 2026
benjaminp pushed a commit to benjaminp/google-cloud-java that referenced this pull request Jul 13, 2026
…to v3.18.0 (googleapis#1749)

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-monitoring-bom](https://togithub.com/googleapis/google-cloud-java) | `3.17.0` -> `3.18.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-monitoring-bom/3.18.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-monitoring-bom/3.18.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-monitoring-bom/3.18.0/compatibility-slim/3.17.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-monitoring-bom/3.18.0/confidence-slim/3.17.0)](https://docs.renovatebot.com/merge-confidence/) |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-bigtable).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS40OC4yIiwidXBkYXRlZEluVmVyIjoiMzUuNDguMiJ9-->
benjaminp pushed a commit to benjaminp/google-cloud-java that referenced this pull request Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants