Unexpected logging in Python ≥ 3.8 by Lite publisher client
anguillanneuf opened this issue · 0 comments
anguillanneuf commented
This level of google-api-core
logging is somehow turned on by default.
@dpcollins-google mentioned it's for asyncio futures. @parthea do you know a way around it?
Environment details
- Python version: ≥3.8
google-cloud-pubsublite
version: 1.3.0, 1.2.0.
Steps to reproduce
cd samples/snippets
python publisher_example.py $PROJECT_NUMBER $REGION $ZONE_ID $TOPIC_ID
Code example
https://github.com/googleapis/python-pubsublite/blob/main/samples/snippets/publisher_example.py
Stack trace
MessageMetadata(partition=Partition(value=0), cursor=offset: 723115
)
Future exception was never retrieved
future: <Future finished exception=Cancelled('Connection shutting down.')>
google.api_core.exceptions.Cancelled: 499 Connection shutting down.