How to suppress python influxdb_client write_api output?

Is it possible not to get full output from write_api like this:

send: b’POST /api/v2/write?org=Myorg&bucket=bulkstat&precision=s HTTP/1.1\r\nHost: localhost:8086\r\nAccept-Encoding: identity\r\nContent-Length: 347067\r\nContent-Encoding: identity\r\nContent-Type: text/plain\r\nAccept: application/json\r\nAuthorization: Token …\r\nUser-Agent: influxdb-client-python/1.24.0\r\n\r\n’

then go my 700+ records sent to the db

reply: ‘HTTP/1.1 204 No Content\r\n’
header: X-Influxdb-Build: OSS
header: X-Influxdb-Version: 2.1.1
header: Date: Tue, 11 Jan 2022 11:46:39 GMT

the reply would be enough actually…

Hi @aserkin,

thanks for using our client.

Do you have enabled a debug output? Try to disable (default value is disabled) debug by:

InfluxDBClient(url="http://localhost:8086", token="my-token", org="my-org", debug=False)

Regards

1 Like

Thank you, @bednar
Actually i did not enable debugs:

with InfluxDBClient(url, token, org) as client:
with client.write_api() as write_api:
write_api.write(bucket,org,influxBulk, write_precision=WritePrecision.S)

but i will try debug=False