Skip to content

We should not print logs after client is closed #530

Closed

Description

@BewareMyPower
.
----------------------------------------------------------------------
Ran 11 tests in 6.153s

OK
2025-12-23 21:51:47.812 INFO  [0x20175f840] ProducerImpl:755 | Producer - [persistent://public/default/asyncio-test-close-producer, standalone-0-15] , [batchMessageContainer = { BatchMessageContainer [size = 0] [bytes = 0] [maxSize = 1000] [maxBytes = 131072] [topicName = persistent://public/default/asyncio-test-close-producer] [numberOfBatchesSent_ = 0] [averageBatchSize_ = 0] }]
2025-12-23 21:51:47.812 INFO  [0x20175f840] ProducerImpl:755 | Producer - [persistent://public/default/asyncio-test-send-failure, standalone-0-23] , [batchMessageContainer = { BatchMessageContainer [size = 0] [bytes = 0] [maxSize = 1000] [maxBytes = 131072] [topicName = persistent://public/default/asyncio-test-send-failure] [numberOfBatchesSent_ = 1] [averageBatchSize_ = 1] }]

Here are the outputs I saw when running tests in Python. The ProducerImpl instance was destroyed after the test exited, which should be dangerous

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions