Skip to content

Demote ADC credential log from info to debug - #73199

Merged
shahar1 merged 1 commit into
apache:mainfrom
developer-rpai:fix/google-adc-log-level-73163
Sep 19, 2026
Merged

shahar1 merged 1 commit into
apache:mainfrom
developer-rpai:fix/google-adc-log-level-73163

Conversation

@developer-rpai

@developer-rpai developer-rpai commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

related: #73163.

The google.auth.default() notice in _CredentialProvider._get_credentials_using_adc was emitted at INFO level on every credential resolution. For users on ADC-based setups like Cloud Composer, where ADC is the expected auth method, this spammed the logs on every connection lookup (e.g. each hook.run() in a loop).

This change demotes the message to DEBUG, matching the other credential resolution paths in the same class (key_path, keyfile_dict, key_secret_name all log at DEBUG). The message remains available for auth troubleshooting at DEBUG level.

Test update: test_get_credentials_and_project_id_with_default_auth now captures at DEBUG level to match.

The `google.auth.default()` notice was emitted at INFO on every credential
resolution, spamming logs for users on ADC-based setups like Cloud Composer
where ADC is the expected auth method. Debug level matches the other
credential resolution paths in this class and keeps the message available
for auth troubleshooting.
@boring-cyborg boring-cyborg Bot added area:providers provider:google Google (including GCP) related issues labels Sep 15, 2026

@SameerMesiah97 SameerMesiah97 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.

Approved pending green CI

@shahar1 shahar1 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.

CC: @VladaZakharova / @MaksYermak - what do you think?

@shahar1
shahar1 merged commit 47d2827 into apache:main Sep 19, 2026
86 checks passed
@boring-cyborg

boring-cyborg Bot commented Sep 19, 2026

Copy link
Copy Markdown

Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions.

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

Labels

area:providers provider:google Google (including GCP) related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants