valkey-io / valkey-py

Valkey Python client based on a fork of redis-py
MIT License
71 stars 9 forks source link

protocole 3 (RESP3) outputs debug info with pubsub #111

Closed jfgaudreault-p closed 1 month ago

jfgaudreault-p commented 1 month ago

When setting protocol=3 (RESP3), and using the pubsub features, on a message reception it seems some data is outputted in stdout by the library (or stderr not sure), here's an example of this data: Push response: [b'subscribe', b'mychannel', 1]

This does not happen with the default protocol.

I'm using valkey-py 6.0.2

aiven-sal commented 1 month ago

Yep, it looks like the resp3 handling code has some extra "log.info" calls that are missing in the resp2 code. They should probably be debug prints, rather then info. As a temporary workaround you can do something like logging.getLogger('push_response').setLevel(logging.WARNING)