Skip to content

Unexpected logging in Python ≥ 3.8 by Lite publisher client  #285

Description

@anguillanneuf

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

  1. cd samples/snippets
  2. 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.

Metadata

Metadata

Labels

api: pubsubliteIssues related to the googleapis/python-pubsublite API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions