压制了无用日志
This commit is contained in:
@@ -725,7 +725,7 @@ async def apply_auto_bind_updates(
|
||||
|
||||
if pending_auto_bind_updates:
|
||||
ordered = ", ".join(f"{key}={outcome_counts[key]}" for key in sorted(outcome_counts))
|
||||
logger.info(
|
||||
logger.debug(
|
||||
"[%s] Auto-bind summary: candidates=%d, bind_pairs=%d, create_enabled=%d, outcomes={%s}",
|
||||
node_type,
|
||||
len(pending_auto_bind_updates),
|
||||
|
||||
@@ -116,7 +116,7 @@ async def _cleanup_one_side(
|
||||
reason = "status=FAILED" if node.status == SyncStatus.FAILED else "data_id empty"
|
||||
else:
|
||||
reason = "persistence_only_source_missing_without_binding"
|
||||
logger.info(
|
||||
logger.debug(
|
||||
f"[{node_type}] Cleaning up bootstrap zombie ({label}): "
|
||||
f"node_id={node.node_id}, reason={reason}, {bind_note}"
|
||||
)
|
||||
|
||||
@@ -45,7 +45,7 @@ def emit_schema_diff_report(strategy, validator: SchemaDiffValidator) -> None:
|
||||
if not validator.has_records():
|
||||
return
|
||||
for line in validator.format_summary_lines():
|
||||
logger.info(f"[{strategy.node_type}] validate {line}")
|
||||
logger.debug(f"[{strategy.node_type}] validate {line}")
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
@@ -361,7 +361,7 @@ async def prepare_directional_update(
|
||||
target_node.error = None
|
||||
diff_text = "; ".join(diff_descriptions) if diff_descriptions else "(未生成差异明细)"
|
||||
target_node.append_log(f"检测到差异: 从节点 {source_node.node_id} 更新数据 | fields={diff_text}")
|
||||
logger.info(f"[{strategy.node_type}] 更新差异字段: target={target_node.node_id}, {diff_text}")
|
||||
logger.debug(f"[{strategy.node_type}] 更新差异字段: target={target_node.node_id}, {diff_text}")
|
||||
logger.debug(f"[{strategy.node_type}] 更新准备完成: target={target_node.node_id}, reason={reason}")
|
||||
return target_node
|
||||
|
||||
|
||||
Reference in New Issue
Block a user