Add logs for the current file being processed and its size.
Build and Push CodeReview / build (push) Waiting to run
Details
Build and Push CodeReview / build (push) Waiting to run
Details
This commit is contained in:
parent
dfefdfe432
commit
44880f7c4d
|
|
@ -1010,6 +1010,7 @@ class CodeIndexer:
|
|||
|
||||
# 异步读取文件
|
||||
content = await asyncio.to_thread(self._read_file_sync, file_path)
|
||||
logger.info(f"📄 正在处理文件: {relative_path}, 大小: {len(content)} 字节")
|
||||
if not content.strip():
|
||||
progress.processed_files += 1
|
||||
progress.skipped_files += 1
|
||||
|
|
@ -1172,6 +1173,7 @@ class CodeIndexer:
|
|||
try:
|
||||
# 异步读取文件
|
||||
content = await asyncio.to_thread(self._read_file_sync, file_path)
|
||||
logger.info(f"📄 正在处理文件: {relative_path}, 大小: {len(content)} 字节")
|
||||
|
||||
if not content.strip():
|
||||
progress.processed_files += 1
|
||||
|
|
@ -1305,6 +1307,7 @@ class CodeIndexer:
|
|||
progress.current_file = file_path
|
||||
|
||||
try:
|
||||
logger.info(f"📄 正在处理文件: {file_path}, 大小: {len(content)} 字节")
|
||||
if not content.strip():
|
||||
progress.processed_files += 1
|
||||
progress.skipped_files += 1
|
||||
|
|
|
|||
Loading…
Reference in New Issue