forked from M-Labs/artiq
1
0
Fork 0

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) 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)