Improve log message formatting for better readability
This commit is contained in:
parent
f064b950fc
commit
09abb656b8
2 changed files with 3 additions and 3 deletions
|
|
@ -3011,7 +3011,7 @@ async def _get_node_data(
|
||||||
):
|
):
|
||||||
# get similar entities
|
# get similar entities
|
||||||
logger.info(
|
logger.info(
|
||||||
f"Query nodes: {query}, top_k: {query_param.top_k}, cosine: {entities_vdb.cosine_better_than_threshold}"
|
f"Query nodes: {query} (top_k:{query_param.top_k}, cosine:{entities_vdb.cosine_better_than_threshold})"
|
||||||
)
|
)
|
||||||
|
|
||||||
results = await entities_vdb.query(query, top_k=query_param.top_k)
|
results = await entities_vdb.query(query, top_k=query_param.top_k)
|
||||||
|
|
@ -3287,7 +3287,7 @@ async def _get_edge_data(
|
||||||
query_param: QueryParam,
|
query_param: QueryParam,
|
||||||
):
|
):
|
||||||
logger.info(
|
logger.info(
|
||||||
f"Query edges: {keywords}, top_k: {query_param.top_k}, cosine: {relationships_vdb.cosine_better_than_threshold}"
|
f"Query edges: {keywords} (top_k:{query_param.top_k}, cosine:{relationships_vdb.cosine_better_than_threshold})"
|
||||||
)
|
)
|
||||||
|
|
||||||
results = await relationships_vdb.query(keywords, top_k=query_param.top_k)
|
results = await relationships_vdb.query(keywords, top_k=query_param.top_k)
|
||||||
|
|
|
||||||
|
|
@ -707,7 +707,7 @@ def priority_limit_async_func_call(
|
||||||
timeout_info.append(f"Health Check: {max_task_duration}s")
|
timeout_info.append(f"Health Check: {max_task_duration}s")
|
||||||
|
|
||||||
timeout_str = (
|
timeout_str = (
|
||||||
f" (Timeouts: {', '.join(timeout_info)})" if timeout_info else ""
|
f"(Timeouts: {', '.join(timeout_info)})" if timeout_info else ""
|
||||||
)
|
)
|
||||||
logger.info(
|
logger.info(
|
||||||
f"{queue_name}: {workers_needed} new workers initialized {timeout_str}"
|
f"{queue_name}: {workers_needed} new workers initialized {timeout_str}"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue