forked from M-Labs/artiq
influxdb: just strip() response
This commit is contained in:
parent
3cfef4264b
commit
06b8666a53
|
@ -116,9 +116,7 @@ class DBWriter(TaskObject):
|
||||||
k, exc_info=True)
|
k, exc_info=True)
|
||||||
else:
|
else:
|
||||||
if response.status not in (200, 204):
|
if response.status not in (200, 204):
|
||||||
content = (await response.content.read()).decode()
|
content = (await response.content.read()).decode().strip()
|
||||||
if content:
|
|
||||||
content = content[:-1] # drop \n
|
|
||||||
logger.warning("got HTTP status %d "
|
logger.warning("got HTTP status %d "
|
||||||
"trying to update '%s': %s",
|
"trying to update '%s': %s",
|
||||||
response.status, k, content)
|
response.status, k, content)
|
||||||
|
|
Loading…
Reference in New Issue