Improve formatting of limit method info in rebuild functions
This commit is contained in:
parent
88a45523e2
commit
fe890fca15
1 changed files with 4 additions and 4 deletions
|
|
@ -1189,7 +1189,7 @@ async def _rebuild_single_entity(
|
||||||
file_paths_list = file_paths_list[:max_file_paths]
|
file_paths_list = file_paths_list[:max_file_paths]
|
||||||
|
|
||||||
file_paths_list.append(
|
file_paths_list.append(
|
||||||
f"...{file_path_placeholder}({limit_method}:{max_file_paths}/{original_count})..."
|
f"...{file_path_placeholder}...({limit_method} {max_file_paths}/{original_count})"
|
||||||
)
|
)
|
||||||
logger.info(
|
logger.info(
|
||||||
f"Limited `{entity_name}`: file_path {original_count} -> {max_file_paths} ({limit_method})"
|
f"Limited `{entity_name}`: file_path {original_count} -> {max_file_paths} ({limit_method})"
|
||||||
|
|
@ -1223,7 +1223,7 @@ async def _rebuild_single_entity(
|
||||||
|
|
||||||
if len(limited_chunk_ids) < len(normalized_chunk_ids):
|
if len(limited_chunk_ids) < len(normalized_chunk_ids):
|
||||||
truncation_info = (
|
truncation_info = (
|
||||||
f"{limit_method}:{len(limited_chunk_ids)}/{len(normalized_chunk_ids)}"
|
f"{limit_method} {len(limited_chunk_ids)}/{len(normalized_chunk_ids)}"
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
truncation_info = ""
|
truncation_info = ""
|
||||||
|
|
@ -1348,7 +1348,7 @@ async def _rebuild_single_relationship(
|
||||||
file_paths_list = file_paths_list[:max_file_paths]
|
file_paths_list = file_paths_list[:max_file_paths]
|
||||||
|
|
||||||
file_paths_list.append(
|
file_paths_list.append(
|
||||||
f"...{file_path_placeholder}({limit_method}:{max_file_paths}/{original_count})..."
|
f"...{file_path_placeholder}...({limit_method} {max_file_paths}/{original_count})"
|
||||||
)
|
)
|
||||||
logger.info(
|
logger.info(
|
||||||
f"Limited `{src}`~`{tgt}`: file_path {original_count} -> {max_file_paths} ({limit_method})"
|
f"Limited `{src}`~`{tgt}`: file_path {original_count} -> {max_file_paths} ({limit_method})"
|
||||||
|
|
@ -1384,7 +1384,7 @@ async def _rebuild_single_relationship(
|
||||||
|
|
||||||
if len(limited_chunk_ids) < len(normalized_chunk_ids):
|
if len(limited_chunk_ids) < len(normalized_chunk_ids):
|
||||||
truncation_info = (
|
truncation_info = (
|
||||||
f"{limit_method}:{len(limited_chunk_ids)}/{len(normalized_chunk_ids)}"
|
f"{limit_method} {len(limited_chunk_ids)}/{len(normalized_chunk_ids)}"
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
truncation_info = ""
|
truncation_info = ""
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue