refactor(proxy): drop the raise_on_invalid_logging_metadata docstring
Some checks failed
LiteLLM Rust / rust-wheel (push) Waiting to run
LiteLLM Rust / rust-lint (push) Waiting to run
LiteLLM Rust / rust-test (push) Waiting to run
Terraform Provider / gofmt, vet, build, test (push) Has been cancelled
Terraform Provider / Provider endpoints vs proxy OpenAPI schema (push) Has been cancelled
Terraform Modules / fmt, validate, test (aws) (push) Has been cancelled
Terraform Modules / fmt, validate, test (gcp) (push) Has been cancelled

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
mrinal 2026-09-23 23:59:03 +00:00
parent 5d778f2b01
commit 6d48ceba4f

View file

@ -257,11 +257,6 @@ def logging_metadata_config_error(metadata: Mapping[str, object] | None) -> str
def raise_on_invalid_logging_metadata(metadata: Mapping[str, object] | None) -> None:
"""Reject a metadata payload whose ``logging`` entries the runtime cannot honor.
Without this the same config the management surface rejects would be
accepted here and then silently ignored or misrouted at request time.
"""
error: Final = logging_metadata_config_error(metadata)
if error is not None:
raise HTTPException(status_code=400, detail={"error": error}) # mutable-ok: FastAPI detail contract