refactor(rust-bridge): remove the LoggerRule concept from the catalog (#46711)

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit dd0c023338)
This commit is contained in:
yujonglee 2026-10-15 10:49:51 -07:00 • committed by Yuneng Jiang
parent a3b1add96d
commit f711977b3f
No known key found for this signature in database

View file

@ -44,11 +44,9 @@ def _construct(factory: NativeDiagnosticFactory, minimum_custom_key_length: int)
def run(native: Callable[[NativeDiagnosticProcessor], ResultT], python: Callable[[], ResultT]) -> ResultT:
from litellm.constants import MINIMUM_CUSTOM_KEY_LENGTH
from litellm.rust_bridge.catalog import LoggerContext, decision
from litellm.rust_bridge.configuration import Decision
from litellm.rust_bridge.configuration import rust_enabled
selected: Final = decision(LoggerContext())
if selected is Decision.PYTHON:
if not rust_enabled():
return python()
factory: Final = PROCESSOR.load()
if factory is None: