[PR #1295] [CLOSED] Add verbose request logs to server. #10540

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

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/1295
Author: @rootedbox
Created: 11/28/2023
Status: Closed

Base: mainHead: feature/1118/verbose_log_requests


📝 Commits (4)

  • 9b78509 Add verbose request logs tto server.
  • 3cfc63c Add enviroment variable OLLAMA_LOG_LEVEL to set the level of loggin. Update README.md to have Enviroment Variables listed.
  • dd90551 Merge branch 'main' into feature/1118/verbose_log_requests
  • 8de75b4 switch to slog

📊 Changes

3 files changed (+52 additions, -0 deletions)

View changed files

📝 README.md (+16 -0)
generate_and_build (+1 -0)
📝 server/routes.go (+35 -0)

📄 Description

Add verbose request logs to server. Completes https://github.com/jmorganca/ollama/issues/1118

example output

2023/11/27 12:30:18 routes.go:736: Request POST - /api/generate; QueryParams: map[]; URLParams: []; Body: {"model":"orca-mini","prompt":"word up","system":"","template":"","context":[31822,13,8458,31922,3244,31871,13,3838,397,363,7421,8825,342,5243,10389,5164,828,31843,9530,362,988,362,365,473,31843,13,13,8458,31922,9779,31871,13,5521,397,365,13,13,8458,31922,13166,31871,13,312,705,363,7421,8825,29328,289,2803,365,288,2470,8931,291,1673,1132,31843,1035,473,312,955,365,1703,31902,13,8458,31922,3244,31871,13,3838,397,363,7421,8825,342,5243,10389,5164,828,31843,9530,362,988,362,365,473,31843,13,13,8458,31922,9779,31871,13,5521,397,365,13,13,8458,31922,13166,31871,13,312,705,363,7421,8825,29328,289,2803,365,288,2470,8931,291,1673,1132,31843,1035,473,312,955,365,1703,31902,13,8458,31922,3244,31871,13,3838,397,363,7421,8825,342,5243,10389,5164,828,31843,9530,362,988,362,365,473,31843,13,13,8458,31922,9779,31871,13,31824,3106,322,260,259,6285,313,13,13,8458,31922,13166,31871,13,312,25122,31844,504,312,705,432,1796,674,365,397,12065,289,31843,9410,365,3281,1673,541,3846,405,1132,562,266,5149,365,764,955,351,31902,13,8458,31922,3244,31871,13,3838,397,363,7421,8825,342,5243,10389,5164,828,31843,9530,362,988,362,365,473,31843,13,13,8458,31922,9779,31871,13,26755,13,13,8458,31922,13166,31871,13,312,31876,31836,10157,31844,504,362,363,7421,8825,31844,312,705,432,29328,289,1313,8931,342,6175,5000,31843,1725,4199,1717,322,289,2803,351,2470,8931,291,1673,1132,31843,1053,635,2492,2128,312,473,955,365,351,31902],"format":"","options":null}; ClientIP: 127.0.0.1; Status: 200; UserAgent: ollama/0.0.0 (arm64 darwin) Go/go1.21.4; Duration: 5.217641542s

🔄 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/1295 **Author:** [@rootedbox](https://github.com/rootedbox) **Created:** 11/28/2023 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feature/1118/verbose_log_requests` --- ### 📝 Commits (4) - [`9b78509`](https://github.com/ollama/ollama/commit/9b785090a68338d96ca1b9c28b5c8d70a1cd12b9) Add verbose request logs tto server. - [`3cfc63c`](https://github.com/ollama/ollama/commit/3cfc63c402ae8e74a125c4f244769888c42baff6) Add enviroment variable OLLAMA_LOG_LEVEL to set the level of loggin. Update README.md to have Enviroment Variables listed. - [`dd90551`](https://github.com/ollama/ollama/commit/dd90551f93d4b1d43d7c4ca07f161959b10e2f2e) Merge branch 'main' into feature/1118/verbose_log_requests - [`8de75b4`](https://github.com/ollama/ollama/commit/8de75b422a3bffb7e9fade4bb6ac18f5d145f0db) switch to slog ### 📊 Changes **3 files changed** (+52 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+16 -0) ➕ `generate_and_build` (+1 -0) 📝 `server/routes.go` (+35 -0) </details> ### 📄 Description Add verbose request logs to server. Completes https://github.com/jmorganca/ollama/issues/1118 example output ``` 2023/11/27 12:30:18 routes.go:736: Request POST - /api/generate; QueryParams: map[]; URLParams: []; Body: {"model":"orca-mini","prompt":"word up","system":"","template":"","context":[31822,13,8458,31922,3244,31871,13,3838,397,363,7421,8825,342,5243,10389,5164,828,31843,9530,362,988,362,365,473,31843,13,13,8458,31922,9779,31871,13,5521,397,365,13,13,8458,31922,13166,31871,13,312,705,363,7421,8825,29328,289,2803,365,288,2470,8931,291,1673,1132,31843,1035,473,312,955,365,1703,31902,13,8458,31922,3244,31871,13,3838,397,363,7421,8825,342,5243,10389,5164,828,31843,9530,362,988,362,365,473,31843,13,13,8458,31922,9779,31871,13,5521,397,365,13,13,8458,31922,13166,31871,13,312,705,363,7421,8825,29328,289,2803,365,288,2470,8931,291,1673,1132,31843,1035,473,312,955,365,1703,31902,13,8458,31922,3244,31871,13,3838,397,363,7421,8825,342,5243,10389,5164,828,31843,9530,362,988,362,365,473,31843,13,13,8458,31922,9779,31871,13,31824,3106,322,260,259,6285,313,13,13,8458,31922,13166,31871,13,312,25122,31844,504,312,705,432,1796,674,365,397,12065,289,31843,9410,365,3281,1673,541,3846,405,1132,562,266,5149,365,764,955,351,31902,13,8458,31922,3244,31871,13,3838,397,363,7421,8825,342,5243,10389,5164,828,31843,9530,362,988,362,365,473,31843,13,13,8458,31922,9779,31871,13,26755,13,13,8458,31922,13166,31871,13,312,31876,31836,10157,31844,504,362,363,7421,8825,31844,312,705,432,29328,289,1313,8931,342,6175,5000,31843,1725,4199,1717,322,289,2803,351,2470,8931,291,1673,1132,31843,1053,635,2492,2128,312,473,955,365,351,31902],"format":"","options":null}; ClientIP: 127.0.0.1; Status: 200; UserAgent: ollama/0.0.0 (arm64 darwin) Go/go1.21.4; Duration: 5.217641542s ``` --- <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:02:46 -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#10540