[Update] 修改一些terminal storage (#2357)

This commit is contained in:
老广
2019-01-21 17:05:31 +08:00
committed by GitHub
parent eee6dd1436
commit 01a101a710
7 changed files with 40 additions and 60 deletions

View File

@@ -215,10 +215,10 @@ class LogTailApi(generics.RetrieveAPIView):
return Response({
"data": 'Not found the log',
'end': True,
'mark': mark}
)
'mark': mark
})
else:
return Response({"data": _("Waiting ...\n")}, status=200)
return Response({"data": "Waiting...\r\n"}, status=200)
with open(log_path, 'r') as f:
offset = cache.get(mark, 0)