From 621004e6d8e4b42d1114a55ffc584f84873a691f Mon Sep 17 00:00:00 2001 From: amithkoujalgi Date: Sat, 30 Aug 2025 18:10:33 +0530 Subject: [PATCH] Fix logging for model pull retry --- src/main/java/io/github/ollama4j/OllamaAPI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/github/ollama4j/OllamaAPI.java b/src/main/java/io/github/ollama4j/OllamaAPI.java index 9e53a06..ba2488a 100644 --- a/src/main/java/io/github/ollama4j/OllamaAPI.java +++ b/src/main/java/io/github/ollama4j/OllamaAPI.java @@ -450,7 +450,7 @@ public class OllamaAPI { int attempt = currentRetry + 1; if (attempt < maxRetries) { long backoffMillis = baseDelayMillis * (1L << currentRetry); - logger.error("Failed to pull model {}, retrying in {} s... (attempt {}/{})", + logger.error("Failed to pull model {}, retrying in {}s... (attempt {}/{})", modelName, backoffMillis/1000, attempt, maxRetries); try { Thread.sleep(backoffMillis);