Commit c4209d6d authored by Daniel Hiltgen's avatar Daniel Hiltgen
Browse files

Report better warning on client closed abort of load

If the client closes the connection before we finish loading the model
we abort, so lets make the log message clearer why to help users
understand this failure mode
parent afd2b058
...@@ -528,7 +528,7 @@ func (s *llmServer) WaitUntilRunning(ctx context.Context) error { ...@@ -528,7 +528,7 @@ func (s *llmServer) WaitUntilRunning(ctx context.Context) error {
for { for {
select { select {
case <-ctx.Done(): case <-ctx.Done():
slog.Info("context expired before server started") slog.Warn("client connection closed before server finished loading, aborting load")
return fmt.Errorf("timed out waiting for llama runner to start: %w", ctx.Err()) return fmt.Errorf("timed out waiting for llama runner to start: %w", ctx.Err())
case err := <-s.done: case err := <-s.done:
msg := "" msg := ""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment