mirror of
https://github.com/mudler/LocalAI.git
synced 2026-10-28 09:08:54 -04:00
The dispatch and sibling addon routes answer 403 "Addon request denied" for every error that is not a named type, and the server logged only the status code. An operator could not tell which check refused a request. Write one Warn line at each fall-through to the generic denial: the action (or route pattern), the add-on ID, the typed error kind and the innermost message of the error chain. Fixed refusals (the recovery and update action rule, an invalid add-on ID, digest or path) log the rule name. The request body, arguments, headers, cookies and credential references are never logged. The response is unchanged. Assisted-by: Claude:claude-sonnet-5-5 [Claude Code] Signed-off-by: Ettore Di Giacinto <mudler@localai.io> Co-authored-by: Ettore Di Giacinto <mudler@localai.io>