aerospike-client-python
aerospike-client-python copied to clipboard
Fix exception log noise in Python 3.13
Running into client exceptions causes additional log noise when using aerospike 16.0.0 and Python 3.13. Seems like this issue was brought up in #629 but hasn't yet been addressed.
Small example below where the first line is the extra log noise:
Exception ignored in PyObject_HasAttrString(); consider using PyObject_HasAttrStringWithError(), PyObject_GetOptionalAttrString() or PyObject_GetAttrString():
Traceback (most recent call last):
File "/var/task/src/demo.py", line 173, in process_something
aerospike_client.operate(key, operations, meta={"ttl": int(ttl.total_seconds())})
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
exception.TimeoutError: (9, 'Client timeout: socket=30000 total=1000 iterations=1 lastNode=127.0.0.0:3000', 'src/main/aerospike/as_command.c', 875, True)
Hi @abbasyadollahi , we'll fix this in the next release.