Refactor logging in graph_derive_edges.py and ingestion_chunk_payload.py: Remove redundant logging import and ensure consistent logger initialization for improved debugging capabilities. This change enhances traceability in edge processing and chunk ingestion.

This commit is contained in:
Lars 2026-01-11 15:25:57 +01:00
parent c91910ee9f
commit f8506c0bb2
2 changed files with 4 additions and 1 deletions

View File

@ -28,6 +28,7 @@ VERSION: 4.3.1 (WP-24c: Präzisions-Priorität)
STATUS: Active STATUS: Active
""" """
import re import re
import logging
from typing import List, Optional, Dict, Tuple, Set from typing import List, Optional, Dict, Tuple, Set
from .graph_utils import ( from .graph_utils import (
_get, _edge, _mk_edge_id, _dedupe_seq, parse_link_target, _get, _edge, _mk_edge_id, _dedupe_seq, parse_link_target,
@ -320,7 +321,6 @@ def build_edges_for_note(
# BEVOR der globale Markdown-Scan oder der Loop über die Chunks beginnt # BEVOR der globale Markdown-Scan oder der Loop über die Chunks beginnt
# Dies stellt sicher, dass bereits geerntete Callouts nicht dupliziert werden # Dies stellt sicher, dass bereits geerntete Callouts nicht dupliziert werden
# WP-24c v4.3.0: Debug-Logik für Audit des Datentransfers # WP-24c v4.3.0: Debug-Logik für Audit des Datentransfers
import logging
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
for ch in chunks: for ch in chunks:

View File

@ -8,10 +8,13 @@ STATUS: Active
""" """
from __future__ import annotations from __future__ import annotations
from typing import Any, Dict, List, Optional from typing import Any, Dict, List, Optional
import logging
# ENTSCHEIDENDER FIX: Import der neutralen Registry-Logik zur Vermeidung von Circular Imports # ENTSCHEIDENDER FIX: Import der neutralen Registry-Logik zur Vermeidung von Circular Imports
from app.core.registry import load_type_registry from app.core.registry import load_type_registry
logger = logging.getLogger(__name__)
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# Resolution Helpers (Audited) # Resolution Helpers (Audited)
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------