فهرست منبع

HUE-3799 [editor] Impala logs have a new line

For some reason Impala returns a \n.
Now that we append logs and not reset it all the time, the extar new lines shows up.
Romain Rigaux 10 سال پیش
والد
کامیت
3718d8c
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      desktop/libs/notebook/src/notebook/api.py

+ 1 - 1
desktop/libs/notebook/src/notebook/api.py

@@ -274,7 +274,7 @@ def get_logs(request):
   # Retrieve full log for job progress parsing
   full_log = request.POST.get('full_log', logs)
 
-  response['logs'] = logs
+  response['logs'] = logs.strip()
   response['progress'] = db.progress(snippet, full_log) if snippet['status'] != 'available' and snippet['status'] != 'success' else 100
   response['jobs'] = jobs
   response['status'] = 0