From 3e389608057eea0e39744aad446c82358b197a4e Mon Sep 17 00:00:00 2001 From: Piotr Stankiewicz Date: Wed, 25 Jun 2025 12:38:47 +0200 Subject: [PATCH] Log Hub response in llama-server auto update failure path In case Hub responds with an unexpected tag (or other unexpected content) when querying for the desired llama-server tag during the auto update process, we return an ok error, but extra info would be nice for debugging. So add a log entry in case the Hub response does not contain the desired tag. Signed-off-by: Piotr Stankiewicz --- pkg/inference/backends/llamacpp/download.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/inference/backends/llamacpp/download.go b/pkg/inference/backends/llamacpp/download.go index 24b23a4fe..519d08d14 100644 --- a/pkg/inference/backends/llamacpp/download.go +++ b/pkg/inference/backends/llamacpp/download.go @@ -87,6 +87,7 @@ func (l *llamaCpp) downloadLatestLlamaCpp(ctx context.Context, log logging.Logge latest = response.Digest } if latest == "" { + log.Warnf("could not fing the %s tag, hub response: %s", desiredTag, body) return fmt.Errorf("could not find the %s tag", desiredTag) }