influxdb: just strip() response

This commit is contained in:
Robert Jördens 2016-04-24 12:35:30 +02:00
parent 3cfef4264b
commit 06b8666a53
1 changed files with 1 additions and 3 deletions

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)