-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Open
Description
Hi @mudler,
After deep investigation into #8449, here's a clarification on logging behavior:
-
π« HTTP Request Logs (e.g.,
/api/resources) are NOT generated by LocalAI.- These come from reverse proxies like Nginx or Traefik.
- β
Fix: Configure your proxy to set log level to
warnorerrorfor health check endpoints.
-
π Model Download Progress Logs are currently commented out in
pkg/downloader/huggingface.go://log.Debug().Msgf("Downloading %s: %s/%s (%.2f%%)", pw.fileName, formatBytes(pw.written), formatBytes(pw.total), percentage)- β
Suggested fix: Uncomment and upgrade to
xlog.Info(...)to make progress visible at INFO level.
- β
Suggested fix: Uncomment and upgrade to
-
π§© Job Lifecycle Events (
job started,job finished) are not currently implemented.- These are not present in the codebase (
pkg/job/is empty). - β Feature Request: Consider implementing a job manager with xlog.Info events for model load/start/stop.
- These are not present in the codebase (
This is not a bug β it's a gap between user expectation and architectural reality.
I recommend:
- Upgrading download logs to INFO (easy fix)
- Adding job events as a feature (enhancement)
- Documenting proxy log filtering as the solution for HTTP noise
Let me know if you'd like a PR for #2 above.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels