Skip to content
This repository was archived by the owner on Aug 13, 2026. It is now read-only.

feat: avoid importing grpc when explicitly disabled - #416

Merged
daniel-sanche merged 3 commits into
v3.0.0from
lazy-import
Oct 15, 2021
Merged

feat: avoid importing grpc when explicitly disabled#416
daniel-sanche merged 3 commits into
v3.0.0from
lazy-import

Conversation

@daniel-sanche

Copy link
Copy Markdown
Contributor

Checks for the DISABLE_GRPC env var before importing grpc code. We can avoid importing a bunch of code if it is not needed

Fixes#12

@daniel-sanche
daniel-sanche requested review from a teamOctober 11, 2021 22:04
@product-auto-labelproduct-auto-labelBot added the api: logging Issues related to the googleapis/python-logging API. label Oct 11, 2021
@google-clagoogle-claBot added the cla: yes This human has signed the Contributor License Agreement. label Oct 11, 2021
@daniel-sanchedaniel-sanche changed the title feat: avoid grpc import when explicitly disabledfeat: avoid importing grpc when explicitly disabledOct 11, 2021
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: loggingIssues related to the googleapis/python-logging API.cla: yesThis human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@daniel-sanche@tseaver