From 27a2d5af5452b82a5d1ab44853fd55a2c63865be Mon Sep 17 00:00:00 2001 From: Daniel Hiltgen Date: Mon, 22 Jan 2024 12:08:22 -0800 Subject: [PATCH] Debug logging on init failure --- llm/dyn_ext_server.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/llm/dyn_ext_server.go b/llm/dyn_ext_server.go index 2da2bb96..a4e78313 100644 --- a/llm/dyn_ext_server.go +++ b/llm/dyn_ext_server.go @@ -142,7 +142,9 @@ func newDynExtServer(library, model string, adapters, projectors []string, opts C.dyn_llama_server_init(llm.s, &sparams, &initResp) if initResp.id < 0 { mutex.Unlock() - return nil, extServerResponseToErr(initResp) + err := extServerResponseToErr(initResp) + slog.Debug(fmt.Sprintf("failure during initialization: %s", err)) + return nil, err } slog.Info("Starting llama main loop")