From 4ac58e587f1253725c5742167060db076f9d4f8f Mon Sep 17 00:00:00 2001 From: Codex Date: Wed, 22 Jul 2026 00:39:08 -0700 Subject: [PATCH] chore: capture LiteLLM startup diagnostics --- servers/bwh-hk-dc3/litellm/compose.yaml | 4 ++++ servers/bwh-hk-dc3/litellm/runtime/.gitignore | 2 ++ 2 files changed, 6 insertions(+) create mode 100644 servers/bwh-hk-dc3/litellm/runtime/.gitignore diff --git a/servers/bwh-hk-dc3/litellm/compose.yaml b/servers/bwh-hk-dc3/litellm/compose.yaml index 781ed53..ad6d054 100644 --- a/servers/bwh-hk-dc3/litellm/compose.yaml +++ b/servers/bwh-hk-dc3/litellm/compose.yaml @@ -12,10 +12,14 @@ services: LITELLM_MASTER_KEY: ${LITELLM_MASTER_KEY} volumes: - ./config.yaml:/app/config.yaml:ro + - ./runtime:/runtime entrypoint: ["python3", "-c"] command: - | import base64, os + log_fd = os.open("/runtime/litellm.log", os.O_WRONLY | os.O_CREAT | os.O_TRUNC, 0o600) + os.dup2(log_fd, 1) + os.dup2(log_fd, 2) path = "/tmp/application_default_credentials.json" with open(path, "wb") as credential_file: credential_file.write(base64.b64decode(os.environ["GOOGLE_ADC_B64"])) diff --git a/servers/bwh-hk-dc3/litellm/runtime/.gitignore b/servers/bwh-hk-dc3/litellm/runtime/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/servers/bwh-hk-dc3/litellm/runtime/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore