Skip to content

fix(auth): lower regional access boundary logs from warning to info.#17571

Open
nbayati wants to merge 1 commit into
googleapis:mainfrom
nbayati:rab-log-info-level
Open

fix(auth): lower regional access boundary logs from warning to info.#17571
nbayati wants to merge 1 commit into
googleapis:mainfrom
nbayati:rab-log-info-level

Conversation

@nbayati

@nbayati nbayati commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

When the library tries to look up Regional Access Boundaries in the background and fails, it used to print a "WARNING" message. Because these lookups are optional and failing is not considered fatal or blocking, omitting warnings creates a lot of log noise for the users. This change lowers those messages to the "INFO" level so they stay out of the way by default.

fixes #17515

When the library tries to look up Regional Access Boundaries in the background and fails, it used to print a "WARNING" message. Because these lookups are optional and failing is not considered fatal or blocking, omitting warnings creates a lot of log noise for the users. This change lowers those messages to the "INFO" level so they stay out of the way by default.
@nbayati nbayati requested review from a team as code owners June 25, 2026 03:41

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request changes various Regional Access Boundary (RAB) lookup log messages from warning to info level and updates the test suite to verify this behavior. The reviewer pointed out that promoting the successful lookup log from DEBUG to INFO increases log noise for the happy path, which contradicts the goal of reducing noise, and suggested keeping it at DEBUG.

)
if _helpers.is_logging_enabled(_LOGGER):
_LOGGER.debug("Regional Access Boundary lookup successful.")
_LOGGER.info("Regional Access Boundary lookup successful.")

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.

medium

This change promotes the successful lookup log from DEBUG to INFO, which increases log noise for the happy path. Since the goal of this PR is to reduce log noise, successful lookups should remain at the DEBUG level.

Suggested change
_LOGGER.info("Regional Access Boundary lookup successful.")
_LOGGER.debug("Regional Access Boundary lookup successful.")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

google-auth: benign Regional Access Boundary (trust boundary) lookup failure logged at WARNING on every service-account refresh

1 participant