[PR #11514] feat: add environment variable that allow user to disable gin default logging middleware #13564

Open
opened 2026-04-13 00:30:13 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/ollama/ollama/pull/11514

State: open
Merged: No


Allows the user to disable through an environment variable the GIN logging middleware, which logs every request by default.

This is very useful if ollama is exposed through a reverse proxy that already logs all requests, or to avoid filling ollama logs with requests from health checks.

It might also fix this issue #3197.

**Original Pull Request:** https://github.com/ollama/ollama/pull/11514 **State:** open **Merged:** No --- Allows the user to disable through an environment variable the GIN logging middleware, which logs every request by default. This is very useful if ollama is exposed through a reverse proxy that already logs all requests, or to avoid filling ollama logs with requests from health checks. It might also fix this issue #3197.
GiteaMirror added the pull-request label 2026-04-13 00:30:13 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#13564