Merge pull request #2142 from dhiltgen/debug_on_fail

Debug logging on init failure
This commit is contained in:
Daniel Hiltgen 2024-01-22 12:29:22 -08:00 committed by GitHub
commit a0a829bf7a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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")