[PR #10635] envconfig: allow OLLAMA_DEBUG to select different verbosities #13303

Closed
opened 2026-04-13 00:23:17 -05:00 by GiteaMirror · 0 comments
Owner

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

State: closed
Merged: No


Some users are reluctant to post logs with un-redacted prompts. This PR switches OLLAMA_DEBUG from a bool to a loglevel, where the logging levels are:
0: standard logging
1: verbose logging
2: verbose logging but prompts hashed

The hashing hides the content but still allows duplicate detection - I don't know how useful this would be it seemed marginally better than a static string like "REDACTED".

The levels are meant to preserve the current meaning that everybody is used to, just adding the new value (2) for redaction.

The documentation only shows setting OLLAMA_DEBUG to 0 or 1 so this should be backwards compatible.

Fixes: #10613

**Original Pull Request:** https://github.com/ollama/ollama/pull/10635 **State:** closed **Merged:** No --- Some users are reluctant to post logs with un-redacted prompts. This PR switches OLLAMA_DEBUG from a bool to a loglevel, where the logging levels are: 0: standard logging 1: verbose logging 2: verbose logging but prompts hashed The hashing hides the content but still allows duplicate detection - I don't know how useful this would be it seemed marginally better than a static string like "REDACTED". The levels are meant to preserve the current meaning that everybody is used to, just adding the new value (2) for redaction. The documentation only shows setting `OLLAMA_DEBUG` to 0 or 1 so this should be backwards compatible. Fixes: #10613
GiteaMirror added the pull-request label 2026-04-13 00:23:17 -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#13303