[PR #2143] [MERGED] Refine debug logging for llm #10797

Closed
opened 2026-04-12 23:11:08 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/2143
Author: @dhiltgen
Created: 1/22/2024
Status: Merged
Merged: 1/22/2024
Merged by: @dhiltgen

Base: mainHead: llm_verbosity


📝 Commits (1)

  • 730dcfc Refine debug logging for llm

📊 Changes

3 files changed (+13 additions, -5 deletions)

View changed files

📝 llm/dyn_ext_server.go (+6 -0)
📝 llm/ext_server/ext_server.cpp (+6 -5)
📝 llm/ext_server/ext_server.h (+1 -0)

📄 Description

This wires up logging in llama.cpp to always go to stderr, and also turns up logging if OLLAMA_DEBUG is set.

This solves a couple problems. We used to emit one line to llama.log in verbose/debug mode before shifting to stdout. Now all the logging from llama.cpp will go to stderr, and the verbosity can be controlled at runtime.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/2143 **Author:** [@dhiltgen](https://github.com/dhiltgen) **Created:** 1/22/2024 **Status:** ✅ Merged **Merged:** 1/22/2024 **Merged by:** [@dhiltgen](https://github.com/dhiltgen) **Base:** `main` ← **Head:** `llm_verbosity` --- ### 📝 Commits (1) - [`730dcfc`](https://github.com/ollama/ollama/commit/730dcfcc7ab3c1fc24417887533eee8c72e45a1c) Refine debug logging for llm ### 📊 Changes **3 files changed** (+13 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `llm/dyn_ext_server.go` (+6 -0) 📝 `llm/ext_server/ext_server.cpp` (+6 -5) 📝 `llm/ext_server/ext_server.h` (+1 -0) </details> ### 📄 Description This wires up logging in llama.cpp to always go to stderr, and also turns up logging if OLLAMA_DEBUG is set. This solves a couple problems. We used to emit one line to llama.log in verbose/debug mode before shifting to stdout. Now all the logging from llama.cpp will go to stderr, and the verbosity can be controlled at runtime. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-12 23:11:08 -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#10797