소스 검색

HUE-3922 [core] Truncate log buffer size to be more performant

Romain Rigaux 9 년 전
부모
커밋
a175e935a9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      desktop/core/src/desktop/log/__init__.py

+ 1 - 1
desktop/core/src/desktop/log/__init__.py

@@ -190,7 +190,7 @@ def fancy_logging():
   """Configure logging into a buffer for /logs endpoint."""
   from log_buffer import FixedBufferHandler
 
-  BUFFER_SIZE = 10 * 1024 * 1024 # This is the size in characters, not bytes
+  BUFFER_SIZE = 500 * 200 # This is the size in characters, not bytes. Targets about 500 rows.
   buffer_handler = FixedBufferHandler(BUFFER_SIZE)
   _formatter = formatter.Formatter(LOG_FORMAT, DATE_FORMAT)