2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-28 20:53:35 +08:00

influxdb: just strip() response

This commit is contained in:
Robert Jördens 2016-04-24 12:35:30 +02:00
parent 3cfef4264b
commit 06b8666a53

View File

@ -116,9 +116,7 @@ class DBWriter(TaskObject):
k, exc_info=True)
else:
if response.status not in (200, 204):
content = (await response.content.read()).decode()
if content:
content = content[:-1] # drop \n
content = (await response.content.read()).decode().strip()
logger.warning("got HTTP status %d "
"trying to update '%s': %s",
response.status, k, content)