Skip to content

Commit 5d31399

Browse files
author
Piotr Stankiewicz
committed
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 <[email protected]>
1 parent b8561e1 commit 5d31399

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/inference/backends/llamacpp/download.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ func (l *llamaCpp) downloadLatestLlamaCpp(ctx context.Context, log logging.Logge
8787
latest = response.Digest
8888
}
8989
if latest == "" {
90+
log.Warnf("could not fing the %s tag, hub response: %s", desiredTag, body)
9091
return fmt.Errorf("could not find the %s tag", desiredTag)
9192
}
9293

0 commit comments

Comments
 (0)